Class PluginMessage


  • public final class PluginMessage
    extends Object
    An event pluginhub plugins can use to send data to each other.
    • Constructor Detail

      • PluginMessage

        public PluginMessage​(@NonNull
                             @NonNull String namespace,
                             @NonNull
                             @NonNull String name)
      • PluginMessage

        public PluginMessage​(@NonNull
                             @NonNull String namespace,
                             @NonNull
                             @NonNull String name,
                             @NonNull
                             @NonNull Map<String,​Object> data)
    • Method Detail

      • getNamespace

        public String getNamespace()
        Event namespace. This should usually be a unique string representing your plugin name eg. "tombs-of-amascut"
      • getName

        public String getName()
        Event name. This should represent what the event is for, eg "points".
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object