Class PluginMessageListenerRegistration


  • public final class PluginMessageListenerRegistration
    extends Object
    Contains information about a Plugins registration to a plugin channel.
    • Constructor Detail

    • Method Detail

      • getChannel

        @NotNull
        public String getChannel()
        Gets the plugin channel that this registration is about.
        Returns:
        Plugin channel.
      • getListener

        @NotNull
        public PluginMessageListener getListener()
        Gets the registered listener described by this registration.
        Returns:
        Registered listener.
      • getPlugin

        @NotNull
        public Plugin getPlugin()
        Gets the plugin that this registration is for.
        Returns:
        Registered plugin.
      • isValid

        public boolean isValid()
        Checks if this registration is still valid.
        Returns:
        True if this registration is still valid, otherwise false.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object