Class ConfigValues

java.lang.Object
dev.majek.hexnicks.config.ConfigValues

public class ConfigValues extends Object
Handles all config options in the plugin.
  • Field Details

    • TAB_NICKS

      public Boolean TAB_NICKS
    • MAX_LENGTH

      public Integer MAX_LENGTH
    • MIN_LENGTH

      public Integer MIN_LENGTH
    • REQUIRE_ALPHANUMERIC

      public Boolean REQUIRE_ALPHANUMERIC
    • CHAT_FORMATTER

      public Boolean CHAT_FORMATTER
    • CHAT_FORMAT

      public String CHAT_FORMAT
    • LEGACY_COLORS

      public Boolean LEGACY_COLORS
    • DEFAULT_NICK_COLOR

      public net.kyori.adventure.text.format.TextColor DEFAULT_NICK_COLOR
    • DEFAULT_USERNAME_COLOR

      public net.kyori.adventure.text.format.TextColor DEFAULT_USERNAME_COLOR
    • UPDATE_PROMPT

      public Boolean UPDATE_PROMPT
    • OVERRIDE_ESSENTIALS

      public Boolean OVERRIDE_ESSENTIALS
    • NICK_OTHER_OVERRIDE

      public Boolean NICK_OTHER_OVERRIDE
    • PREVENT_DUPLICATE_NICKS

      public Boolean PREVENT_DUPLICATE_NICKS
    • PREVENT_DUPLICATE_NICKS_STRICT

      public Boolean PREVENT_DUPLICATE_NICKS_STRICT
    • BLOCKED_NICKNAMES

      public List<String> BLOCKED_NICKNAMES
    • DEBUG

      public Boolean DEBUG
  • Constructor Details

    • ConfigValues

      public ConfigValues()
  • Method Details

    • reload

      public void reload()
      Reload the config values.
    • toWeb

      @NotNull public @NotNull String toWeb()
      Upload the config to bytebin to be edited via pastebin frontend.
      Returns:
      the url to the pastebin for editing
    • fromWeb

      public void fromWeb(@NotNull @NotNull String link)
      Retrieve an updated config from bytebin and save it to the local file.
      Parameters:
      link - the link to the pastebin or bytebin.
      Throws:
      IllegalArgumentException - if the link is not a valid bytebin link.