Merge pull request #8 from zonedabone/master

Adds more flexible support for other death plugins.
This commit is contained in:
garbagemule 2011-06-16 15:31:01 -07:00
commit 70766da9b6
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);