New Permission: essentials.god.pvp

Unless you have this permission you will be unable to attack other players while in god mode.
This commit is contained in:
KHobbits 2012-09-08 14:51:03 +01:00
parent e502a7e6fd
commit b1b09ea542
2 changed files with 6 additions and 1 deletions

View File

@ -46,6 +46,11 @@ public class EssentialsEntityListener implements Listener
{
event.setCancelled(true);
}
if (attacker.isGodModeEnabled() && !attacker.isAuthorized("essentials.god.pvp"))
{
event.setCancelled(true);
}
attacker.updateActivity(true);
final List<String> commandList = attacker.getPowertool(attacker.getItemInHand());

View File

@ -40,7 +40,7 @@ public class EssentialsGeoIPPlayerListener implements Listener, IConf
config.setTemplateName("/config.yml", EssentialsGeoIP.class);
reloadConfig();
}
@EventHandler(priority = EventPriority.MONITOR)
public void onPlayerJoin(final PlayerJoinEvent event)
{