mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-27 21:15:57 +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.");
|
||||
}
|
||||
|
||||
if (plugin.inGroup(player, "wg-invincible")) {
|
||||
if (plugin.inGroup(player, "wg-invincible")
|
||||
|| plugin.hasPermission(player, "worldguard.login.god")) {
|
||||
cfg.enableGodMode(player);
|
||||
}
|
||||
|
||||
if (plugin.inGroup(player, "wg-amphibious")) {
|
||||
if (plugin.inGroup(player, "wg-amphibious")
|
||||
|| plugin.hasPermission(player, "worldguard.login.amphibious")) {
|
||||
cfg.enableAmphibiousMode(player);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user