Package dev.majek.hexnicks.config
Class ConfigValues
java.lang.Object
dev.majek.hexnicks.config.ConfigValues
Handles all config options in the plugin.
-
Field Summary
Modifier and TypeFieldDescriptionnet.kyori.adventure.text.format.TextColor
net.kyori.adventure.text.format.TextColor
-
Constructor Summary
-
Method Summary
-
Field Details
-
TAB_NICKS
-
MAX_LENGTH
-
MIN_LENGTH
-
REQUIRE_ALPHANUMERIC
-
CHAT_FORMATTER
-
CHAT_FORMAT
-
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
-
OVERRIDE_ESSENTIALS
-
NICK_OTHER_OVERRIDE
-
PREVENT_DUPLICATE_NICKS
-
PREVENT_DUPLICATE_NICKS_STRICT
-
BLOCKED_NICKNAMES
-
DEBUG
-
-
Constructor Details
-
ConfigValues
public ConfigValues()
-
-
Method Details
-
reload
public void reload()Reload the config values. -
toWeb
Upload the config to bytebin to be edited via pastebin frontend.- Returns:
- the url to the pastebin for editing
-
fromWeb
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.
-