Added permission nodes as an alternative to wg-invincible and -amphibious groups.

This commit is contained in:
Wizjany 2011-05-31 19:58:12 -04:00
parent 26946feecc
commit 4591fc603f

View File

@ -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);
}
}