Class RedisBungeeAPI
java.lang.Object
com.imaginarycode.minecraft.redisbungee.AbstractRedisBungeeAPI
com.imaginarycode.minecraft.redisbungee.RedisBungeeAPI
This platform class exposes some internal RedisBungee functions. You obtain an instance of this object by invoking
getRedisBungeeApi()
or somehow you got the Plugin instance by you can call the api using RedisBungeePlugin.getAbstractRedisBungeeApi()
.- Since:
- 0.2.3 | updated 0.8.0
-
Field Summary
Fields inherited from class com.imaginarycode.minecraft.redisbungee.AbstractRedisBungeeAPI
plugin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RedisBungeeAPI
Api instancefinal @Nullable ServerInfo
getServerFor
(@NonNull UUID player) Get the server where the specified player is playing.Methods inherited from class com.imaginarycode.minecraft.redisbungee.AbstractRedisBungeeAPI
getAbstractRedisBungeeAPI, getAllProxies, getAllServers, getHumanPlayersOnline, getJedisPool, getLastOnline, getMode, getNameFromUuid, getNameFromUuid, getPlayerCount, getPlayerIp, getPlayersOnline, getPlayersOnProxy, getPlayersOnServer, getProxy, getProxyId, getServerId, getServerNameFor, getServerToPlayers, getSummoner, getUuidFromName, getUuidFromName, isPlayerOnline, kickPlayer, kickPlayer, kickPlayer, kickPlayer, registerPubSubChannels, requestClusterJedis, requestJedis, requestJedisPooled, sendChannelMessage, sendProxyCommand, sendProxyCommand, unregisterPubSubChannels
-
Constructor Details
-
RedisBungeeAPI
-
-
Method Details
-
getServerFor
Get the server where the specified player is playing. This function also deals with the case of local players as well, and will return local information on them.- Parameters:
player
- a player uuid- Returns:
ServerInfo
Can be null if proxy can't find it.- See Also:
-
getRedisBungeeApi
Api instance- Returns:
- the API instance.
- Since:
- 0.6.5
-