Provides events for handling actions performed by players.
Interface Summary Interface Description KickedFromServerEvent.ServerKickResultRepresents the base interface for
Class Summary Class Description DisconnectEventThis event is fired when a player disconnects from the proxy. GameProfileRequestEventThis event is fired after the
PreLoginEventin order to set up the game profile for the user.
KickedFromServerEventFired when a player is kicked from a server. KickedFromServerEvent.DisconnectPlayerTells the proxy to disconnect the player with the specified reason. KickedFromServerEvent.NotifyNotifies the player with the specified message but does nothing else. KickedFromServerEvent.RedirectPlayerTells the proxy to redirect the player to another server. LoginEventThis event is fired once the player has been authenticated but before they connect to a server on the proxy. PlayerChatEventThis event is fired when a player types in a chat message. PlayerChatEvent.ChatResultRepresents the result of the
PlayerChooseInitialServerEventFired when a player has finished connecting to the proxy and we need to choose the first server to connect to. PlayerModInfoEventThis event is fired when a Forge client sends its mods to the proxy while connecting to a server. PlayerResourcePackStatusEventThis event is fired when the status of a resource pack sent to the player by the server is changed. PlayerSettingsChangedEvent PostLoginEventThis event is fired once the player has been fully initialized and is about to connect to their first server. PreLoginEventThis event is fired when a player has initiated a connection with the proxy but before the proxy authenticates the player with Mojang or before the player's proxy connection is fully established (for offline mode). PreLoginEvent.PreLoginComponentResultRepresents an "allowed/allowed with forced online\offline mode/denied" result with a reason allowed for denial. ServerConnectedEventThis event is fired once the player has successfully connected to the target server and the connection to the previous server has been de-established. ServerPostConnectEventFired after the player has connected to a server. ServerPreConnectEventThis event is fired before the player connects to a server. ServerPreConnectEvent.ServerResultRepresents the result of the
TabCompleteEventThis event is fired after a tab complete response is sent by the remote server, for clients on 1.12.2 and below.
Enum Summary Enum Description DisconnectEvent.LoginStatus PlayerResourcePackStatusEvent.StatusRepresents the possible statuses for the resource pack.