Package me.hackware.api.event.impl
Class PlayerListChangeEvent
java.lang.Object
me.hackware.api.event.Event
me.hackware.api.event.impl.PlayerListChangeEvent
Fired on the client thread after the tab list gained or lost players: once for each
player-info packet that added or removed any, after the game has applied it.
It carries no names; read the list (ClientPacketListener.getOnlinePlayers()).
Unlike PlayerJoinEvent and PlayerLeaveEvent it knows no grace period, so
it also fires for the burst that fills the list right after logging in. Those two say
"someone came" and "someone went"; this one is for whoever keeps asking "is X online?",
who can ask it here instead of every tick.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class me.hackware.api.event.Event
cancel, isCancelled
-
Constructor Details
-
PlayerListChangeEvent
public PlayerListChangeEvent()
-