Class CurrentServerTracker

java.lang.Object
de.themoep.resourcepacksplugin.velocity.listeners.CurrentServerTracker

public class CurrentServerTracker extends Object
  • Constructor Details

  • 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

      public String getCurrentServer(com.velocitypowered.api.proxy.Player player)
      Get the server the player is currently on or connecting to
      Parameters:
      player - The player
      Returns:
      The name of the server