Package net.ME1312.SubServers.Sync
Class SubAPI
java.lang.Object
net.ME1312.SubServers.Client.Common.ClientAPI
net.ME1312.SubServers.Sync.SubAPI
- All Implemented Interfaces:
BungeeAPI
SubAPI Class
-
Method Summary
Modifier and TypeMethodDescriptionVersion[]
Get an array of compatible Minecraft Versionsstatic SubAPI
Gets the SubAPI MethodsDeprecated.Use SubAPI Methods when availableGets values from the SubServers LangGets the current SubServers Lang ChannelsgetName()
Get the Proxy NameGets the BungeeCord VersiongetRemotePlayer
(String name) Gets a player on this network by searching across all known proxies (Cached)getRemotePlayer
(UUID id) Gets a player on this network by searching across all known proxies (Cached)int
Get the number of players on this network across all known proxiesGets players on this network across all known proxies (Cached)getRemotePlayers
(ServerInfo server) Get players on this server across all known proxies (Cached)Gets the Runtime DirectoryGets the SubData Network ConnectionsGets the SubData Network ProtocolGets the SubServers Build VersionGets the SubServers VersionMethods inherited from class net.ME1312.SubServers.Client.Common.ClientAPI
addServer, addServer, addServer, addServer, forceRemoveServer, forceRemoveServer, forceRemoveServer, forceRemoveServer, getGroup, getGroups, getHost, getHosts, getLang, getLowercaseGroups, getMasterProxy, getProxies, getProxy, getRemotePlayer, getRemotePlayer, getRemotePlayers, getServer, getServers, getSubServer, getSubServers, removeServer, removeServer, removeServer, removeServer
-
Method Details
-
getInstance
Gets the SubAPI Methods- Returns:
- SubAPI
-
getInternals
Deprecated.Use SubAPI Methods when availableGets the SubServers Internals- Specified by:
getInternals
in interfaceBungeeAPI
- Returns:
- SubPlugin Internals
-
getName
Get the Proxy Name -
getRemotePlayerCount
public int getRemotePlayerCount()Get the number of players on this network across all known proxies- Specified by:
getRemotePlayerCount
in interfaceBungeeAPI
- Returns:
- Remote Player Count
-
getRemotePlayers
Get players on this server across all known proxies (Cached)- Specified by:
getRemotePlayers
in interfaceBungeeAPI
- Parameters:
server
- Server to search- Returns:
- Remote Player Map
-
getRemotePlayers
Gets players on this network across all known proxies (Cached)- Specified by:
getRemotePlayers
in interfaceBungeeAPI
- Returns:
- Remote Player Map
-
getRemotePlayer
Gets a player on this network by searching across all known proxies (Cached)- Specified by:
getRemotePlayer
in interfaceBungeeAPI
- Parameters:
name
- Player name- Returns:
- Remote Player
-
getRemotePlayer
Gets a player on this network by searching across all known proxies (Cached)- Specified by:
getRemotePlayer
in interfaceBungeeAPI
- Parameters:
id
- Player UUID- Returns:
- Remote Player
-
getSubDataNetwork
Gets the SubData Network Connections- Specified by:
getSubDataNetwork
in classClientAPI
- Returns:
- SubData Network Connections
-
getSubDataProtocol
Gets the SubData Network Protocol- Specified by:
getSubDataProtocol
in classClientAPI
- Returns:
- SubData Network Protocol
-
getLangChannels
Gets the current SubServers Lang Channels- Specified by:
getLangChannels
in interfaceBungeeAPI
- Specified by:
getLangChannels
in classClientAPI
- Returns:
- SubServers Lang Channel list
-
getLang
Gets values from the SubServers Lang -
getRuntimeDirectory
Gets the Runtime Directory- Specified by:
getRuntimeDirectory
in interfaceBungeeAPI
- Returns:
- Directory
-
getWrapperVersion
Gets the SubServers Version- Specified by:
getWrapperVersion
in interfaceBungeeAPI
- Returns:
- SubServers Version
-
getWrapperBuild
Gets the SubServers Build Version- Specified by:
getWrapperBuild
in interfaceBungeeAPI
- Returns:
- SubServers Build Version (or null if unsigned)
-
getProxyVersion
Gets the BungeeCord Version- Specified by:
getProxyVersion
in interfaceBungeeAPI
- Returns:
- BungeeCord Version
-
getGameVersion
Get an array of compatible Minecraft Versions- Specified by:
getGameVersion
in interfaceBungeeAPI
- Returns:
- Minecraft Versions
-