mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-01-27 18:41:23 +01:00
format
This commit is contained in:
parent
c991c863e1
commit
96cf0e23d4
@ -77,7 +77,7 @@ public class EventListen implements Listener {
|
|||||||
if (!npcManager.isNPC(event.getEntity()))
|
if (!npcManager.isNPC(event.getEntity()))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
event.setCancelled(true); // TODO implement damage handlers
|
event.setCancelled(true);
|
||||||
if (event instanceof EntityDamageByEntityEvent) {
|
if (event instanceof EntityDamageByEntityEvent) {
|
||||||
EntityDamageByEntityEvent e = (EntityDamageByEntityEvent) event;
|
EntityDamageByEntityEvent e = (EntityDamageByEntityEvent) event;
|
||||||
if (e.getDamager() instanceof Player) {
|
if (e.getDamager() instanceof Player) {
|
||||||
|
Loading…
Reference in New Issue
Block a user