Class SubAPI

All Implemented Interfaces:
BungeeAPI

public final class SubAPI extends ClientAPI implements BungeeAPI
SubAPI Class
  • Method Details

    • getInstance

      public static SubAPI getInstance()
      Gets the SubAPI Methods
      Returns:
      SubAPI
    • getInternals

      @Deprecated public ExProxy getInternals()
      Deprecated.
      Use SubAPI Methods when available
      Gets the SubServers Internals
      Specified by:
      getInternals in interface BungeeAPI
      Returns:
      SubPlugin Internals
    • getName

      public String getName()
      Get the Proxy Name
      Specified by:
      getName in class ClientAPI
      Returns:
      Proxy Name
    • getRemotePlayerCount

      public int getRemotePlayerCount()
      Get the number of players on this network across all known proxies
      Specified by:
      getRemotePlayerCount in interface BungeeAPI
      Returns:
      Remote Player Count
    • getRemotePlayers

      public Map<UUID,CachedPlayer> getRemotePlayers(ServerInfo server)
      Get players on this server across all known proxies (Cached)
      Specified by:
      getRemotePlayers in interface BungeeAPI
      Parameters:
      server - Server to search
      Returns:
      Remote Player Map
    • getRemotePlayers

      public Map<UUID,CachedPlayer> getRemotePlayers()
      Gets players on this network across all known proxies (Cached)
      Specified by:
      getRemotePlayers in interface BungeeAPI
      Returns:
      Remote Player Map
    • getRemotePlayer

      public CachedPlayer getRemotePlayer(String name)
      Gets a player on this network by searching across all known proxies (Cached)
      Specified by:
      getRemotePlayer in interface BungeeAPI
      Parameters:
      name - Player name
      Returns:
      Remote Player
    • getRemotePlayer

      public CachedPlayer getRemotePlayer(UUID id)
      Gets a player on this network by searching across all known proxies (Cached)
      Specified by:
      getRemotePlayer in interface BungeeAPI
      Parameters:
      id - Player UUID
      Returns:
      Remote Player
    • getSubDataNetwork

      public DataClient[] getSubDataNetwork()
      Gets the SubData Network Connections
      Specified by:
      getSubDataNetwork in class ClientAPI
      Returns:
      SubData Network Connections
    • getSubDataProtocol

      public DataProtocol getSubDataProtocol()
      Gets the SubData Network Protocol
      Specified by:
      getSubDataProtocol in class ClientAPI
      Returns:
      SubData Network Protocol
    • getLangChannels

      public Collection<String> getLangChannels()
      Gets the current SubServers Lang Channels
      Specified by:
      getLangChannels in interface BungeeAPI
      Specified by:
      getLangChannels in class ClientAPI
      Returns:
      SubServers Lang Channel list
    • getLang

      public Map<String,String> getLang(String channel)
      Gets values from the SubServers Lang
      Specified by:
      getLang in interface BungeeAPI
      Specified by:
      getLang in class ClientAPI
      Parameters:
      channel - Lang Channel
      Returns:
      Lang Value
    • getRuntimeDirectory

      public File getRuntimeDirectory()
      Gets the Runtime Directory
      Specified by:
      getRuntimeDirectory in interface BungeeAPI
      Returns:
      Directory
    • getWrapperVersion

      public Version getWrapperVersion()
      Gets the SubServers Version
      Specified by:
      getWrapperVersion in interface BungeeAPI
      Returns:
      SubServers Version
    • getWrapperBuild

      public Version getWrapperBuild()
      Gets the SubServers Build Version
      Specified by:
      getWrapperBuild in interface BungeeAPI
      Returns:
      SubServers Build Version (or null if unsigned)
    • getProxyVersion

      public Version getProxyVersion()
      Gets the BungeeCord Version
      Specified by:
      getProxyVersion in interface BungeeAPI
      Returns:
      BungeeCord Version
    • getGameVersion

      public Version[] getGameVersion()
      Get an array of compatible Minecraft Versions
      Specified by:
      getGameVersion in interface BungeeAPI
      Returns:
      Minecraft Versions