Add permission and config option in the config file.

This commit is contained in:
alexcrea 2024-07-26 04:24:44 +02:00
parent c7f1b63c78
commit 7a19632150
No known key found for this signature in database
GPG key ID: 43FD265DB0DBF91F
3 changed files with 103 additions and 37 deletions

View file

@ -55,7 +55,23 @@ unit_repair_cost: 1
# Valid values include 0 to 1000
sacrifice_illegal_enchant_cost: 1
# Default limit to apply to any enchants missing from override_limits
# Allow using color code and hexadecimal color.
#
# Color code are prefixed by "&" and hexadecimal color by "#".
allow_color_code: false
allow_hexadecimal_color: false
# Toggle if color should only be applicable if the player a certain permission.
#
# permission are "ca.color.code" for use of color code and "ca.color.hex" for use of hexadecimal color.
permission_needed_for_color: true
# Xp cost if the player use color in the items name on rename.
#
# Valid values include 0 to 1000.
use_of_color_cost: 0
# Default limit to apply to any enchants missing from enchant_limits
#
# Valid values include 1 to 1000
default_limit: 5

View file

@ -39,6 +39,14 @@ permissions:
ca.config.edit:
default: op
description: Allow administrator to edit the plugin's config in game
# color permissions
ca.color.code:
default: op
description: Allow player to use color code if permission is required (toggleable)
ca.color.hex:
default: op
description: Allow player to use hexadecimal color if permission is required (toggleable)
# soft depend on old name, so I can disable it if it is on the same server
# as it is the old name for this plugin