Added support for other death plugins.

This commit is contained in:
zonedabone 2011-06-16 10:46:55 -04:00
parent 1e4933d1ae
commit 04ab729a48
2 changed files with 2 additions and 1 deletions

View File

@ -36,6 +36,7 @@ public class MADeathListener extends EntityListener
event.getDrops().clear();
ArenaManager.playerDeath(p);
p.getInventory().clear();
}
// If monster, remove from monster set
else if (event.getEntity() instanceof LivingEntity)

View File

@ -67,7 +67,7 @@ public class MobArena extends JavaPlugin
pm.registerEvent(Event.Type.PLAYER_JOIN, discListener, Priority.Normal, this);
pm.registerEvent(Event.Type.BLOCK_BREAK, blockListener, Priority.Normal, this);
pm.registerEvent(Event.Type.BLOCK_PLACE, blockListener, Priority.Normal, this);
pm.registerEvent(Event.Type.ENTITY_DEATH, deathListener, Priority.Normal, this);
pm.registerEvent(Event.Type.ENTITY_DEATH, deathListener, Priority.Lowest, this);
pm.registerEvent(Event.Type.ENTITY_EXPLODE, monsterListener, Priority.Normal, this);
pm.registerEvent(Event.Type.ENTITY_COMBUST, monsterListener, Priority.Normal, this);
pm.registerEvent(Event.Type.ENTITY_TARGET, monsterListener, Priority.Normal, this);