Class PluginMessageListener

java.lang.Object
de.themoep.resourcepacksplugin.core.SubChannelHandler<net.md_5.bungee.api.connection.Server>
de.themoep.resourcepacksplugin.bungee.listeners.PluginMessageListener
All Implemented Interfaces:
net.md_5.bungee.api.plugin.Listener

public class PluginMessageListener extends SubChannelHandler<net.md_5.bungee.api.connection.Server> implements net.md_5.bungee.api.plugin.Listener
  • Constructor Details

  • Method Details

    • pluginMessageReceived

      public void pluginMessageReceived(net.md_5.bungee.api.event.PluginMessageEvent event)
    • onServerSwitch

      public void onServerSwitch(net.md_5.bungee.api.event.ServerConnectedEvent event)
    • sendPluginMessage

      protected void sendPluginMessage(net.md_5.bungee.api.connection.Server target, byte[] data)
      Specified by:
      sendPluginMessage in class SubChannelHandler<net.md_5.bungee.api.connection.Server>
    • saveKey

      protected void saveKey(String key)
      Description copied from class: SubChannelHandler
      Save the key used for authenticating communication
      Specified by:
      saveKey in class SubChannelHandler<net.md_5.bungee.api.connection.Server>
      Parameters:
      key - The key to set
    • loadKey

      protected String loadKey()
      Description copied from class: SubChannelHandler
      Load the key from the storage
      Specified by:
      loadKey in class SubChannelHandler<net.md_5.bungee.api.connection.Server>
      Returns:
      The key (or null if none is stored)
    • getTargetType

      protected String getTargetType()
      Description copied from class: SubChannelHandler
      Get the type that we are sending messages to
      Specified by:
      getTargetType in class SubChannelHandler<net.md_5.bungee.api.connection.Server>
      Returns:
      The type