Compiled against CB1113

This commit is contained in:
Garbage Mule 2011-09-15 07:35:46 +02:00
parent 6291a0fbfb
commit a0b489f11b
3 changed files with 5 additions and 3 deletions

Binary file not shown.

View File

@ -442,6 +442,8 @@ public class MAListener implements ArenaListener
if (!(event.getEntity() instanceof Player) || !arena.arenaPlayers.contains((Player)event.getEntity()))
return;
System.out.println(event.getRegainReason());
if (event.getRegainReason() == RegainReason.REGEN)
event.setCancelled(true);
}

View File

@ -72,7 +72,7 @@ public class MobArena extends JavaPlugin
setupRegister();
setupSpout();
setupHeroes();
setupMagicSpells();
//setupMagicSpells();
// Set up the ArenaMaster and the announcements
am = new ArenaMaster(this);
@ -189,7 +189,7 @@ public class MobArena extends JavaPlugin
heroManager = ((Heroes) heroes).getHeroManager();
}
private void setupMagicSpells()
/*private void setupMagicSpells()
{
Plugin spells = this.getServer().getPluginManager().getPlugin("MagicSpells");
if (spells == null) return;
@ -197,7 +197,7 @@ public class MobArena extends JavaPlugin
PluginManager pm = getServer().getPluginManager();
MagicSpellsListener spellsListener = new MagicSpellsListener(this);
pm.registerEvent(Event.Type.CUSTOM_EVENT, spellsListener, Priority.Normal, this);
}
}*/
public Configuration getConfig() { return config; }
public ArenaMaster getAM() { return am; } // More convenient.