Simplified autogod config check

This commit is contained in:
zml2008 2011-12-09 17:57:40 -08:00
parent b126255be7
commit 59673c9e66

View File

@ -187,8 +187,8 @@ public void onPlayerJoin(PlayerJoinEvent event) {
+ "Fire spread is currently globally disabled for this world.");
}
if (cfg.autoGodMode && plugin.inGroup(player, "wg-invincible")
|| (cfg.autoGodMode && plugin.hasPermission(player, "worldguard.auto-invincible"))) {
if (cfg.autoGodMode && (plugin.inGroup(player, "wg-invincible")
|| plugin.hasPermission(player, "worldguard.auto-invincible"))) {
cfg.enableGodMode(player);
}