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:
Turtle9598 2011-12-09 14:40:38 -05:00 committed by TomyLobo
parent 606c9f3fd8
commit b126255be7

View File

@ -187,7 +187,7 @@ 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 (cfg.autoGodMode && plugin.inGroup(player, "wg-invincible")
|| (cfg.autoGodMode && plugin.hasPermission(player, "worldguard.auto-invincible"))) { || (cfg.autoGodMode && plugin.hasPermission(player, "worldguard.auto-invincible"))) {
cfg.enableGodMode(player); cfg.enableGodMode(player);
} }