mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-28 05:25:20 +01:00
Added permission nodes as an alternative to wg-invincible and -amphibious groups.
This commit is contained in:
parent
26946feecc
commit
4591fc603f
@ -441,11 +441,13 @@ public void onPlayerJoin(PlayerJoinEvent event) {
|
|||||||
+ "Fire spread is currently globally disabled for this world.");
|
+ "Fire spread is currently globally disabled for this world.");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (plugin.inGroup(player, "wg-invincible")) {
|
if (plugin.inGroup(player, "wg-invincible")
|
||||||
|
|| plugin.hasPermission(player, "worldguard.login.god")) {
|
||||||
cfg.enableGodMode(player);
|
cfg.enableGodMode(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (plugin.inGroup(player, "wg-amphibious")) {
|
if (plugin.inGroup(player, "wg-amphibious")
|
||||||
|
|| plugin.hasPermission(player, "worldguard.login.amphibious")) {
|
||||||
cfg.enableAmphibiousMode(player);
|
cfg.enableAmphibiousMode(player);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user