Revert Prevent nametag usage unless player can kill target
This commit is contained in:
parent
1017a49c41
commit
35251efd29
|
|
@ -906,9 +906,9 @@ class PlayerEventHandler implements Listener
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
// This change breaks mcmmo where it adds hearts as health bar to mobs...
|
||||
// Name tags may only be used on entities that the player is allowed to kill.
|
||||
if (itemInHand.getType() == Material.NAME_TAG)
|
||||
/*if (itemInHand.getType() == Material.NAME_TAG)
|
||||
{
|
||||
EntityDamageByEntityEvent damageEvent = new EntityDamageByEntityEvent(player, entity, EntityDamageEvent.DamageCause.CUSTOM, 0);
|
||||
instance.entityEventHandler.onEntityDamage(damageEvent);
|
||||
|
|
@ -918,7 +918,7 @@ class PlayerEventHandler implements Listener
|
|||
// Don't print message - damage event handler should have handled it.
|
||||
return;
|
||||
}
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
//when a player throws an egg
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user