Replaced legacy color codes in default language file with new Adventure MiniMessage system.
Added option to prevent damage from the first hit that disables disco armor,
New Configuration Files:
Code (YAML):
# Should the plugin be allowed to check for updates? update-checker: true
# How long (in ticks) should the time be between color changes? # 1 = once per tick # 20 = once per second # 1200 = once per minute # # Default: 5 armor-speed: 5
# Should disco armor be disabled if a player takes damage? disable-on-damage: true
# Requires 'disable-on-damage: true' # Should Disco Armor prevent the first hit when a player is wearing disco armor? prevent-first-hit: true
# Should disco armor have a LUCK enchantment and a HIDE_ENCHANTS flag? # (This is the default option, players can change their own armor by typing '/disco-armor glow') glowing: false
Code (YAML):
## Extra Information: ## This is the default language file for Disco Armor. ## The default language is "en_us", also known as English (United States). ## Context will be added as YAML comments above the string.
## The color scheme for messages is gray and sometimes red. ## Command feedback that is successful should always be green. ## Error messages should always be red. ## Variables in messages can be gray or white.
## Messages use the MiniMessage format in non-strict mode. ## More information about MiniMessage can be found here: ## https://docs.adventure.kyori.net/minimessage/format.html
--- # The language code for this file. language-name: "en_us"
# The format for decimal numbers. # The United States uses the number and two decimal places decimal-format: "0.00" error:
player-only: "<red>Only players can execute this command.</red>" invalid-pattern: "<red><gray>{pattern}</gray> is not a valid pattern.</red>" prevent-removal: "<red>You are not allowed to remove your disco armor.</red>" glow:
enabled: "<gray>Glow Effect:</gray> <green>ON</green>" disabled: "<gray>Glow Effect:</gray> <red>OFF</red>" command:
usage:
- "<white>/disco-armor on</white><gray>: Open the menu to choose a pattern.</gray>
" - "<white>/disco-armor off</white><gray>
: Disable your disco armor.</gray>
" - "<white>/disco-armor glow</white><gray>
: Toggle the enchantment effect on your armor.</gray>
" - "<white>/disco-armor select</white><gray>
: Manually choose an armor type.</gray>
" reload-success: "<green>Successfully reloaded the configuration files.</green>
" change-type: "<green>Successfully changed your armor pattern to <gray>
{pattern
}</gray>.</green>
"