player-death is very redundant. Changing to entity-death.

This commit is contained in:
sk89q 2012-11-04 11:03:40 -08:00
parent b181bfc914
commit 2c2484b026
3 changed files with 2 additions and 3 deletions

View File

@ -37,7 +37,6 @@ public enum KnownAttachment {
PLAYER_SPAWN("player-spawn"),
PLAYER_RESPAWN("player-respawn"),
PLAYER_QUIT("player-quit"),
PLAYER_DEATH("player-death"),
ENTITY_EXPLODE("entity-explode"),
ENTITY_DAMAGE("entity-damage"),
ENTITY_DEATH("entity-death"),

View File

@ -848,7 +848,7 @@ public void onPlayerDeath(PlayerDeathEvent event) {
WorldConfiguration wcfg = cfg.get(player.getWorld());
// RuleLists
RuleSet rules = wcfg.getRuleList().get(KnownAttachment.PLAYER_DEATH);
RuleSet rules = wcfg.getRuleList().get(KnownAttachment.ENTITY_DEATH);
BukkitContext context = new BukkitContext(event);
context.setTargetEntity(player);
rules.process(context);

View File

@ -23,7 +23,7 @@
set-data: 0
- setting: protection.disable-xp-orb-drops
rules:
- when: player-death
- when: entity-death
then:
- ?: set-drop
set-xp: 0