Class BungeeBungeecordListener


  • public abstract class BungeeBungeecordListener
    extends com.alessiodp.core.common.messaging.bungee.BungeecordListener
    • Constructor Detail

      • BungeeBungeecordListener

        public BungeeBungeecordListener​(@NotNull
                                        @NotNull com.alessiodp.core.common.ADPPlugin plugin,
                                        boolean listenToMain,
                                        boolean listenToSub)
    • Method Detail

      • registerChannel

        public void registerChannel​(@NotNull
                                    @NotNull com.alessiodp.core.common.messaging.MessageChannel channel)
        Specified by:
        registerChannel in class com.alessiodp.core.common.messaging.bungee.BungeecordListener
      • unregisterChannel

        public void unregisterChannel​(@NotNull
                                      @NotNull com.alessiodp.core.common.messaging.MessageChannel channel)
        Specified by:
        unregisterChannel in class com.alessiodp.core.common.messaging.bungee.BungeecordListener
      • registerListener

        public void registerListener()
        Specified by:
        registerListener in class com.alessiodp.core.common.messaging.bungee.BungeecordListener
      • unregisterListener

        public void unregisterListener()
        Specified by:
        unregisterListener in class com.alessiodp.core.common.messaging.bungee.BungeecordListener
      • handlePacket

        protected abstract void handlePacket​(byte[] bytes,
                                             @NotNull
                                             @NotNull com.alessiodp.core.common.messaging.MessageChannel channel)
        Handle the message of the packet
        Parameters:
        bytes - the message
        channel - the channel used