Package us.ajg0702.queue.api
Interface EventHandler
-
public interface EventHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable AdaptedServer
changeTargetServer(AdaptedPlayer player, AdaptedServer initialChoice)
void
handleMessage(AdaptedPlayer reciever, byte[] data)
void
onPlayerJoin(AdaptedPlayer player)
void
onPlayerJoinServer(AdaptedPlayer player)
Called when a player joins a server or switches between serversvoid
onPlayerLeave(AdaptedPlayer player)
void
onServerKick(AdaptedPlayer player, AdaptedServer from, net.kyori.adventure.text.Component reason, boolean moving)
-
-
-
Method Detail
-
handleMessage
void handleMessage(AdaptedPlayer reciever, byte[] data)
-
onPlayerJoin
void onPlayerJoin(AdaptedPlayer player)
-
onPlayerLeave
void onPlayerLeave(AdaptedPlayer player)
-
onPlayerJoinServer
void onPlayerJoinServer(AdaptedPlayer player)
Called when a player joins a server or switches between servers- Parameters:
player
- the player
-
onServerKick
void onServerKick(AdaptedPlayer player, AdaptedServer from, net.kyori.adventure.text.Component reason, boolean moving)
-
changeTargetServer
@Nullable @Nullable AdaptedServer changeTargetServer(AdaptedPlayer player, AdaptedServer initialChoice)
-
-