mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-22 17:17:57 +01:00
player-death is very redundant. Changing to entity-death.
This commit is contained in:
parent
b181bfc914
commit
2c2484b026
@ -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"),
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user