mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-06 22:56:41 +02: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:
@@ -46,6 +46,11 @@ public class EssentialsEntityListener implements Listener
|
|||||||
{
|
{
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (attacker.isGodModeEnabled() && !attacker.isAuthorized("essentials.god.pvp"))
|
||||||
|
{
|
||||||
|
event.setCancelled(true);
|
||||||
|
}
|
||||||
|
|
||||||
attacker.updateActivity(true);
|
attacker.updateActivity(true);
|
||||||
final List<String> commandList = attacker.getPowertool(attacker.getItemInHand());
|
final List<String> commandList = attacker.getPowertool(attacker.getItemInHand());
|
||||||
|
@@ -40,7 +40,7 @@ public class EssentialsGeoIPPlayerListener implements Listener, IConf
|
|||||||
config.setTemplateName("/config.yml", EssentialsGeoIP.class);
|
config.setTemplateName("/config.yml", EssentialsGeoIP.class);
|
||||||
reloadConfig();
|
reloadConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.MONITOR)
|
@EventHandler(priority = EventPriority.MONITOR)
|
||||||
public void onPlayerJoin(final PlayerJoinEvent event)
|
public void onPlayerJoin(final PlayerJoinEvent event)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user