mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-22 17:17:57 +01:00
player-spawn -> player-join
This commit is contained in:
parent
2c2484b026
commit
ef43ba2700
@ -34,7 +34,7 @@ public enum KnownAttachment {
|
||||
BLOCK_INTERACT("block-interact"),
|
||||
BLOCK_FADE("block-fade"),
|
||||
BLOCK_FORM("block-form"),
|
||||
PLAYER_SPAWN("player-spawn"),
|
||||
PLAYER_JOIN("player-join"),
|
||||
PLAYER_RESPAWN("player-respawn"),
|
||||
PLAYER_QUIT("player-quit"),
|
||||
ENTITY_EXPLODE("entity-explode"),
|
||||
|
@ -282,7 +282,7 @@ public void onPlayerJoin(PlayerJoinEvent event) {
|
||||
}
|
||||
|
||||
// RuleLists
|
||||
RuleSet rules = wcfg.getRuleList().get(KnownAttachment.PLAYER_SPAWN);
|
||||
RuleSet rules = wcfg.getRuleList().get(KnownAttachment.PLAYER_JOIN);
|
||||
BukkitContext context = new BukkitContext(event);
|
||||
context.setSourceEntity(player);
|
||||
rules.process(context);
|
||||
|
@ -1,6 +1,6 @@
|
||||
- setting: [auto-invincible, auto-invincible-permission]
|
||||
rules:
|
||||
- when: player-spawn
|
||||
- when: player-join
|
||||
if:
|
||||
- ?has-permission: worldguard.auto-invincible
|
||||
then:
|
||||
|
Loading…
Reference in New Issue
Block a user