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
-
Field Summary
Fields inherited from class com.imaginarycode.minecraft.redisbungee.AbstractRedisBungeeAPI
plugin -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RedisBungeeAPIApi instancefinal @Nullable com.velocitypowered.api.proxy.server.ServerInfogetServerFor(@NonNull UUID player) Get the server where the specified player is playing.voidkickPlayer(String playerName, net.kyori.adventure.text.Component message) Kicks a player from the network callsAbstractRedisBungeeAPI.getUuidFromName(String)to get uuidvoidkickPlayer(UUID playerUUID, net.kyori.adventure.text.Component message) Kicks a player from the networkMethods inherited from class com.imaginarycode.minecraft.redisbungee.AbstractRedisBungeeAPI
getAbstractRedisBungeeAPI, getAllProxies, getHumanPlayersOnline, getLastOnline, getMode, getNameFromUuid, getNameFromUuid, getPlayerCount, getPlayerIp, getPlayersOnline, getPlayersOnProxy, getPlayersOnServer, getProxy, getProxyId, getServerNameFor, getServerToPlayers, getSummoner, getUuidFromName, getUuidFromName, isPlayerOnline, kickPlayer, kickPlayer, sendChannelMessage, sendProxyCommand, sendProxyCommand
-
Constructor Details
-
RedisBungeeAPI
-
-
Method Details
-
getServerFor
public final @Nullable com.velocitypowered.api.proxy.server.ServerInfo getServerFor(@NonNull UUID player) 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:
ServerInfoCan be null if proxy can't find it.- See Also:
-
kickPlayer
Kicks a player from the network callsAbstractRedisBungeeAPI.getUuidFromName(String)to get uuid- Parameters:
playerName- player namemessage- kick message that player will see on kick- Since:
- 0.12.0
-
kickPlayer
Kicks a player from the network- Parameters:
playerUUID- player namemessage- kick message that player will see on kick- Since:
- 0.12.0
-
getRedisBungeeApi
Api instance- Returns:
- the API instance.
- Since:
- 0.6.5
-