Class ProxyPackListener

java.lang.Object
de.themoep.resourcepacksplugin.bukkit.listeners.ProxyPackListener
All Implemented Interfaces:
org.bukkit.plugin.messaging.PluginMessageListener

public class ProxyPackListener extends Object implements org.bukkit.plugin.messaging.PluginMessageListener
Created by Phoenix616 on 02.02.2016.
  • Constructor Details

  • Method Details

    • onPluginMessageReceived

      public void onPluginMessageReceived(String channel, org.bukkit.entity.Player p, byte[] message)
      Specified by:
      onPluginMessageReceived in interface org.bukkit.plugin.messaging.PluginMessageListener
    • registerSubChannel

      public ProxyPackReaction registerSubChannel(String name, ProxyPackReaction reaction)
      Register a new sub channel with this listener on the channel "rp:plugin"
      Parameters:
      name - The name of the sub channel, case sensitive
      reaction - The reaction that should happen
      Returns:
      The previously registered Reaction or null