MCrafterss/MTeamPvP

Add PlayerQuitEvent

Closed this issue · 6 comments

If a player quits from server MTeamPvP would not recognize it.
Add PlayerQuitEvent which does the same like PlayerDeathEvent, just change getEntity() to getPlayer().

Thats combat logger right ???

Nah

i thought he means when player logs out the plugin kills him lol

but i think he mean another thing

he means it says that player quit after he quits.

It just looks like he means that when a player leaves the server, MTeamPvP doesn't record that, it thinks the player is still online. Survingo is saying that you can use onQuitEvent() to record it so that doesn't happen....

EDIT: Oh wait now I understand what you mean @iPocket LOL

I don't know why I made a issue which was waiting a week that anyone other can fix that because I had no time if I fixed that in 30 seconds.... YOLO