Class PluginMessageListener

java.lang.Object
de.themoep.resourcepacksplugin.core.SubChannelHandler<com.velocitypowered.api.proxy.server.RegisteredServer>
de.themoep.resourcepacksplugin.velocity.listeners.PluginMessageListener

public class PluginMessageListener extends de.themoep.resourcepacksplugin.core.SubChannelHandler<com.velocitypowered.api.proxy.server.RegisteredServer>
  • Field Summary

    Fields inherited from class de.themoep.resourcepacksplugin.core.SubChannelHandler

    MESSAGING_CHANNEL
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected String
     
    protected String
     
    void
    onServerSwitch(com.velocitypowered.api.event.player.ServerPostConnectEvent event)
     
    void
    pluginMessageReceived(com.velocitypowered.api.event.connection.PluginMessageEvent event)
     
    protected void
     
    protected void
    sendPluginMessage(com.velocitypowered.api.proxy.server.RegisteredServer target, byte[] data)
     

    Methods inherited from class de.themoep.resourcepacksplugin.core.SubChannelHandler

    acceptsNewKey, generateKey, handleMessage, readPack, registerSubChannel, reload, sendKey, sendMessage, setKey, trustsSender, writePack

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • pluginMessageReceived

      public void pluginMessageReceived(com.velocitypowered.api.event.connection.PluginMessageEvent event)
    • onServerSwitch

      public void onServerSwitch(com.velocitypowered.api.event.player.ServerPostConnectEvent event)
    • sendPluginMessage

      protected void sendPluginMessage(com.velocitypowered.api.proxy.server.RegisteredServer target, byte[] data)
      Specified by:
      sendPluginMessage in class de.themoep.resourcepacksplugin.core.SubChannelHandler<com.velocitypowered.api.proxy.server.RegisteredServer>
    • saveKey

      protected void saveKey(String key)
      Specified by:
      saveKey in class de.themoep.resourcepacksplugin.core.SubChannelHandler<com.velocitypowered.api.proxy.server.RegisteredServer>
    • loadKey

      protected String loadKey()
      Specified by:
      loadKey in class de.themoep.resourcepacksplugin.core.SubChannelHandler<com.velocitypowered.api.proxy.server.RegisteredServer>
    • getTargetType

      protected String getTargetType()
      Specified by:
      getTargetType in class de.themoep.resourcepacksplugin.core.SubChannelHandler<com.velocitypowered.api.proxy.server.RegisteredServer>