Class ConfigChanged


  • public class ConfigChanged
    extends Object
    An event where a configuration entry has been modified.
    • Constructor Detail

      • ConfigChanged

        public ConfigChanged()
    • Method Detail

      • getGroup

        public String getGroup()
        The parent group for the key.

        Typically set to the name of a plugin to prevent potential collisions between other key values that may have the same name.

      • getKey

        public String getKey()
        The configuration key that has been modified.
      • getOldValue

        public String getOldValue()
        The previous value of the entry.
      • getNewValue

        @Nullable
        public String getNewValue()
        The new value of the entry, null if the entry has been unset.
      • setGroup

        public void setGroup​(String group)
        The parent group for the key.

        Typically set to the name of a plugin to prevent potential collisions between other key values that may have the same name.

      • setKey

        public void setKey​(String key)
        The configuration key that has been modified.
      • setOldValue

        public void setOldValue​(String oldValue)
        The previous value of the entry.
      • setNewValue

        public void setNewValue​(@Nullable
                                String newValue)
        The new value of the entry, null if the entry has been unset.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object