mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-09-07 04:48:07 +02:00
Fixed god mode being assigned to ops if auto enable is false and there is no permissions system
This fixes Bug #873
This commit is contained in:
parent
606c9f3fd8
commit
b126255be7
@ -187,7 +187,7 @@ public void onPlayerJoin(PlayerJoinEvent event) {
|
||||
+ "Fire spread is currently globally disabled for this world.");
|
||||
}
|
||||
|
||||
if (plugin.inGroup(player, "wg-invincible")
|
||||
if (cfg.autoGodMode && plugin.inGroup(player, "wg-invincible")
|
||||
|| (cfg.autoGodMode && plugin.hasPermission(player, "worldguard.auto-invincible"))) {
|
||||
cfg.enableGodMode(player);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user