Class FallbackState

java.lang.Object
net.ME1312.SubServers.Bungee.Library.Fallback.FallbackState

public class FallbackState extends Object
Fallback Player State Class
  • Field Details

    • player

      public final UUID player
    • names

      public final LinkedList<String> names
    • servers

      public final LinkedList<ServerInfo> servers
    • reason

      public final net.md_5.bungee.api.chat.BaseComponent[] reason
  • Constructor Details

    • FallbackState

      public FallbackState(UUID player, Map<String,ServerInfo> servers, net.md_5.bungee.api.chat.BaseComponent... reason)
      Smart Fallback State Container
      Parameters:
      player - Player
      servers - Fallback Servers
      reason - Original Disconnect Reason
  • Method Details

    • remove

      public void remove(String name)
      Use a server
      Parameters:
      name - Server name to remove
    • remove

      public void remove(ServerInfo server)
      Use a server
      Parameters:
      server - Server to remove
    • done

      public void done(Runnable callback, long delay)
      Finish the process
      Parameters:
      callback - Finishing callback
      delay - Delay for determining stability