Separate names with a comma.
Comments in 'Plugin Development' started by Legoboy0215, Jan 24, 2016.
When I execute something in PlayerQuitEvent, when someone gets kicked, will it be triggered?
Avoid kicking a player when he is already quitting. That is an edge condition - this may make the server crash or whatever in the future, without warning.
Same reason as not to kick players in PlayerPreLoginEvent.
??? Kicking what?
@Legoboy0215 wrote when he excute something in PlayerQuitEvent, player get kicked.
Yes, and I am telling him to avoid it.
I said "would PlayerQuitEvent" be fired when someone was kicked...
Then how does your question have anything to do with PlayerKickEvent...
Or maybe I don't know what you are asking at all, in the first post.
Also, just to share my research, https://github.com/PocketMine/PocketMine-MP/blob/master/src/pocketmine/Player.php#L3006 shows that PlayerQuitEvent will not be fired twice for the same session.