Class RedisBungeeHandler
- java.lang.Object
-
- com.alessiodp.core.bungeecord.addons.external.RedisBungeeHandler
-
public abstract class RedisBungeeHandler extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRedisBungeeHandler.RedisBungeeEventListener
-
Field Summary
Fields Modifier and Type Field Description protected static booleanactiveprotected static com.imaginarycode.minecraft.redisbungee.RedisBungeeAPIapiprotected static RedisBungeeHandlerinstanceprotected com.alessiodp.core.common.ADPPluginplugin
-
Constructor Summary
Constructors Constructor Description RedisBungeeHandler(@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 StringgetCurrentServer()static StringgetPlayerName(UUID player)static UUIDgetPlayerUuidByName(String player)static StringgetServerNameOf(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 RedisBungeeHandler 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)
-
getCurrentServer
public static String getCurrentServer()
-
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)
-
-