Class RedisBungeeHandler


  • public abstract class RedisBungeeHandler
    extends Object
    • Field Detail

      • plugin

        protected final com.alessiodp.core.common.ADPPlugin plugin
      • active

        protected static boolean active
      • api

        protected static com.imaginarycode.minecraft.redisbungee.RedisBungeeAPI api
    • Constructor Detail

      • RedisBungeeHandler

        public RedisBungeeHandler​(@NotNull
                                  @NotNull com.alessiodp.core.common.ADPPlugin plugin)
    • Method Detail

      • init

        public void init​(boolean enabled)
      • isActive

        public static boolean isActive()
      • isPlayerOnline

        public static boolean isPlayerOnline​(UUID player)
      • getPlayerName

        public static String getPlayerName​(UUID player)
      • getServerFor

        public static net.md_5.bungee.api.config.ServerInfo getServerFor​(UUID player)
      • getCurrentServer

        public static String getCurrentServer()
      • getPlayerUuidByName

        public static UUID getPlayerUuidByName​(String player)
      • registerSubChannel

        public static void registerSubChannel​(String channel)
      • unregisterSubChannel

        public static void unregisterSubChannel​(String channel)
      • sendChannelMessage

        public static void sendChannelMessage​(String channel,
                                              String message)
      • 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)