fix players hurting each other in safe zones
This commit is contained in:
parent
48ebfc219d
commit
7da8b8e3bf
@ -91,6 +91,15 @@ public class Gameplay extends MiniPlugin
|
||||
Bukkit.getPluginManager().registerEvents(new CustomCreatures(), plugin);
|
||||
}
|
||||
|
||||
@EventHandler(priority = EventPriority.LOWEST)
|
||||
public void spawnDamage(CustomDamageEvent event)
|
||||
{
|
||||
if (_clansManager.getClanUtility().getClaim(event.GetDamageeEntity().getLocation()) != null && _clansManager.getClanUtility().getClaim(event.GetDamageeEntity().getLocation()).Safe)
|
||||
{
|
||||
event.SetCancelled("Safe Zone");
|
||||
}
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void onPlayerFishing(PlayerFishEvent event)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user