mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-23 01:27:40 +01:00
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:
parent
e502a7e6fd
commit
b1b09ea542
@ -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());
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user