Implements a mix of #3 and #7

Adds a preset command which can be used to see available presets
Adds preset filters which can be used to specify item sub-categories within a preset
Removes SWORD_SMITH and RANGED_SMITH, as those are replaced by the RANGED and SWORD filters
Adds a list of usable filters for each preset
This commit is contained in:
2022-10-13 18:40:38 +02:00
parent 6a55300c1e
commit 12f807060e
16 changed files with 552 additions and 55 deletions

View File

@ -16,6 +16,10 @@ commands:
permission: blacksmith.admin
usage: /<command> <option/reload> [new value]
description: Used for configuring default blacksmith settings, or global settings
preset:
permission: blacksmith.preset
usage: /<command> <preset>[:filter]
description: Used to display which materials are part of a given preset. If a filter, such as diamond is used, the result of applying the filter is shown.
permissions:
blacksmith.admin:
description: Allows overall blacksmith configuration
@ -23,9 +27,13 @@ permissions:
children:
blacksmith.edit: true
blacksmith.use: true
blacksmith.preset: true
blacksmith.edit:
description: Allows changing settings for the selected blacksmith NPC
default: op
blacksmith.use:
description: Allows the player to repair items using blacksmiths
default: true
default: true
blacksmith.preset:
description: Allows the player to use the /preset command
default: op

View File

@ -14,4 +14,7 @@ en:
INPUT_POSITIVE_DOUBLE_REQUIRED: "You specified a value which isn't a positive double!"
INPUT_POSITIVE_INTEGER_REQUIRED: "You specified a value which isn't a positive integer!"
PERMISSION_DENIED: "You lack the necessary permission"
PLUGIN_RELOADED: "Blacksmith config reloaded!"
PLUGIN_RELOADED: "Blacksmith config reloaded!"
INVALID_FILTER_FOR_PRESET: "The specified filter is not valid for that preset"
INVALID_PRESET_OR_FILTER: "You specified an invalid preset or an invalid filter"
PRESET_MATERIALS: "Materials in preset: {materials}"