Separate names with a comma.
Comments in 'Plugin Development' started by CoolGuyPL, Nov 7, 2014.
Is there something like that?
What do you mean by "damager"? When does the damager damage?
It depends on why you want the cause of the damage. There's two events that you can use, EntityDamageEvent that will occur whenever an entity is damaged or EntityDamageByEntityEvent that will occur when a entity is damaged by another entity.
For Damage By Entity Event you can do getDamager() or for Entity Damage Event you can do getCause().
Hey, but why don't you try looking at the API for a bit? You've made quite a bit of threads here. Here's a couple links you should try looking at:
PocketMine API Source
Plugin Tutorial - Documentation
Since you're from bukkit, it'll be easier for you to learn it; a lot of it and its events act pretty much exactly like the bukkit API.