Class VelocityRedisBungeeHandler
- java.lang.Object
-
- com.alessiodp.core.velocity.addons.external.VelocityRedisBungeeHandler
-
public abstract class VelocityRedisBungeeHandler extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVelocityRedisBungeeHandler.VelocityRedisBungeeEventListener
-
Field Summary
Fields Modifier and Type Field Description protected static booleanactiveprotected static com.imaginarycode.minecraft.redisbungee.RedisBungeeAPIapiprotected static VelocityRedisBungeeHandlerinstanceprotected com.alessiodp.core.common.ADPPluginplugin
-
Constructor Summary
Constructors Constructor Description VelocityRedisBungeeHandler(@NotNull com.alessiodp.core.common.ADPPlugin plugin)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static StringgetPlayerName(UUID player)static UUIDgetPlayerUuidByName(String player)static StringgetProxyId()static StringgetServerNameOf(UUID player)static com.velocitypowered.api.proxy.server.ServerInfogetServerOf(UUID player)voidinit(boolean enabled)static booleanisActive()static booleanisPlayerOnline(UUID player)static voidregisterSubChannel(String channel)static voidsendChannelMessage(String channel, String message)abstract voidsendChat(@NotNull com.alessiodp.core.common.user.User user, @NotNull String messageToSend)abstract voidsendMessage(@NotNull com.alessiodp.core.common.user.User user, @NotNull String message, boolean colorTranslation)abstract voidsendTitle(@NotNull com.alessiodp.core.common.user.User user, @NotNull String message, int fadeInTime, int showTime, int fadeOutTime)static voidunregisterSubChannel(String channel)
-
-
-
Field Detail
-
instance
protected static VelocityRedisBungeeHandler instance
-
plugin
protected final com.alessiodp.core.common.ADPPlugin plugin
-
active
protected static boolean active
-
api
protected static com.imaginarycode.minecraft.redisbungee.RedisBungeeAPI api
-
-
Method Detail
-
init
public void init(boolean enabled)
-
isActive
public static boolean isActive()
-
isPlayerOnline
public static boolean isPlayerOnline(UUID player)
-
getServerOf
public static com.velocitypowered.api.proxy.server.ServerInfo getServerOf(UUID player)
-
getProxyId
public static String getProxyId()
-
registerSubChannel
public static void registerSubChannel(String channel)
-
unregisterSubChannel
public static void unregisterSubChannel(String channel)
-
sendMessage
public abstract void sendMessage(@NotNull @NotNull com.alessiodp.core.common.user.User user, @NotNull @NotNull String message, boolean colorTranslation)
-
sendTitle
public abstract void sendTitle(@NotNull @NotNull com.alessiodp.core.common.user.User user, @NotNull @NotNull String message, int fadeInTime, int showTime, int fadeOutTime)
-
sendChat
public abstract void sendChat(@NotNull @NotNull com.alessiodp.core.common.user.User user, @NotNull @NotNull String messageToSend)
-
-