player-spawn -> player-join

This commit is contained in:
sk89q 2012-11-04 11:05:21 -08:00
parent 2c2484b026
commit ef43ba2700
3 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ public enum KnownAttachment {
BLOCK_INTERACT("block-interact"), BLOCK_INTERACT("block-interact"),
BLOCK_FADE("block-fade"), BLOCK_FADE("block-fade"),
BLOCK_FORM("block-form"), BLOCK_FORM("block-form"),
PLAYER_SPAWN("player-spawn"), PLAYER_JOIN("player-join"),
PLAYER_RESPAWN("player-respawn"), PLAYER_RESPAWN("player-respawn"),
PLAYER_QUIT("player-quit"), PLAYER_QUIT("player-quit"),
ENTITY_EXPLODE("entity-explode"), ENTITY_EXPLODE("entity-explode"),

View File

@ -282,7 +282,7 @@ public void onPlayerJoin(PlayerJoinEvent event) {
} }
// RuleLists // RuleLists
RuleSet rules = wcfg.getRuleList().get(KnownAttachment.PLAYER_SPAWN); RuleSet rules = wcfg.getRuleList().get(KnownAttachment.PLAYER_JOIN);
BukkitContext context = new BukkitContext(event); BukkitContext context = new BukkitContext(event);
context.setSourceEntity(player); context.setSourceEntity(player);
rules.process(context); rules.process(context);

View File

@ -1,6 +1,6 @@
- setting: [auto-invincible, auto-invincible-permission] - setting: [auto-invincible, auto-invincible-permission]
rules: rules:
- when: player-spawn - when: player-join
if: if:
- ?has-permission: worldguard.auto-invincible - ?has-permission: worldguard.auto-invincible
then: then: