mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-23 09:37:51 +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_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"),
|
||||||
|
@ -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);
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user