Class CurrentServerTracker
java.lang.Object
de.themoep.resourcepacksplugin.velocity.listeners.CurrentServerTracker
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCurrentServer
(com.velocitypowered.api.proxy.Player player) Get the server the player is currently on or connecting tovoid
onPlayerDisconnect
(com.velocitypowered.api.event.connection.DisconnectEvent event) void
onServerConnect
(com.velocitypowered.api.event.player.ServerPreConnectEvent event) void
onServerSwitch
(com.velocitypowered.api.event.player.ServerPostConnectEvent event)
-
Constructor Details
-
CurrentServerTracker
-
-
Method Details
-
onServerConnect
public void onServerConnect(com.velocitypowered.api.event.player.ServerPreConnectEvent event) -
onPlayerDisconnect
public void onPlayerDisconnect(com.velocitypowered.api.event.connection.DisconnectEvent event) -
onServerSwitch
public void onServerSwitch(com.velocitypowered.api.event.player.ServerPostConnectEvent event) -
getCurrentServer
Get the server the player is currently on or connecting to- Parameters:
player
- The player- Returns:
- The name of the server
-