mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2025-01-13 03:41:18 +01:00
Simplified autogod config check
This commit is contained in:
parent
b126255be7
commit
59673c9e66
@ -187,8 +187,8 @@ public void onPlayerJoin(PlayerJoinEvent event) {
|
|||||||
+ "Fire spread is currently globally disabled for this world.");
|
+ "Fire spread is currently globally disabled for this world.");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cfg.autoGodMode && plugin.inGroup(player, "wg-invincible")
|
if (cfg.autoGodMode && (plugin.inGroup(player, "wg-invincible")
|
||||||
|| (cfg.autoGodMode && plugin.hasPermission(player, "worldguard.auto-invincible"))) {
|
|| plugin.hasPermission(player, "worldguard.auto-invincible"))) {
|
||||||
cfg.enableGodMode(player);
|
cfg.enableGodMode(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user