The-Wild / WildExtras

Custom Server Plugin
0 stars 1 forks source link

EP damage can trigger PvP protection warning #8

Open bigpresh opened 5 years ago

bigpresh commented 5 years ago

Dumped from IRC while I remember:

11:59:58 <@WildBot113> (Okyuria) hmmmm 12:00:11 <@WildBot113> (Okyuria) "Okyuria is a newbie, leave them alone!" 12:00:27 <@WildBot113> (Okyuria) I get it every time I use the ender pearl to warp 12:01:03 <@bigpresh> Ah, the damage taken while teleporting is triggering the newbie PvP protection checks. 12:01:32 <@bigpresh> I suspect the event that triggers has the damaged player as the damager as well, or something 12:01:36 <@WildBot113> (Okyuria) It doesn't matter much tbh, newbie rank doesn't exactly last forever either :D 12:01:54 <@bigpresh> Or it's caused by a projectile damage event, and the projectile's thrower is you 12:02:26 <@bigpresh> So a quick check in that code that ignores if the projectile was an enderpearl - or if the "attacking" player is the same as the player being damaged - would do the job

bigpresh commented 5 years ago

should be fixed by bdb3bc4