Implements armor trim salvage #24
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good

This commit is contained in:
2024-05-06 14:48:48 +02:00
parent 3ed3c99c15
commit e6047f3866
7 changed files with 226 additions and 56 deletions

View File

@ -167,6 +167,9 @@ scrapper:
# salvage items with very good enchantments.
salvageEnchanted: false
# Whether to enable salvaging of armor trims
salvageArmorTrims: true
# Default values for messages used by NPCs
messages:
# The message to display when another player is using the scrapper
@ -202,6 +205,9 @@ scrapper:
# The message to display when explaining the shown item's salvage cost
costMessage: "&eIt will cost &a{cost}&e to salvage that item! {yield} &eClick again to salvage!"
# The message to display when explaining the shown item's armor trim's salvage cost
costMessageArmorTrim: "&eIt will cost &a{cost}&e to salvage that armor trim!"
# The yield message to display if trying to salvage a non-damaged item
fullSalvageMessage: "&aI should be able to extract all components from that pristine item.&r"
@ -209,4 +215,10 @@ scrapper:
partialSalvageMessage: "&cI cannot extract all components from that damaged item.&r"
# The message to display when asked to salvage an enchanted item, and that option is disabled
cannotSalvageEnchantedMessage: "&cI'm sorry, but I'm unable to salvage enchanted items!"
cannotSalvageEnchantedMessage: "&cI'm sorry, but I'm unable to salvage enchanted items!"
# The message to display when asked to salvage an armor trim, and that option is disabled
cannotSalvageArmorTrimMessage: "&cI'm sorry, but I'm unable to salvage armor trims!"
# The message to display if the correct materials to return for the armor trim are unknown
armorTrimSalvageNotFoundMessage: "&cI'm sorry, but I don't know how to salvage that armor trim!"

View File

@ -6,43 +6,43 @@ main: net.knarcraft.blacksmith.BlacksmithPlugin
depend: [ Citizens, Vault ]
prefix: "Blacksmith"
api-version: 1.19
api-version: 1.20
commands:
blacksmith:
permission: blacksmith.edit
usage: /<command> <option> [new value]
description: Used for configuring the selected blacksmith NPC
description: Used for configuring the selected blacksmith NPC.
blacksmithConfig:
permission: blacksmith.admin
usage: /<command> <option/reload> [new value]
description: Used for configuring default blacksmith settings, or global blacksmith settings
description: Used for configuring default blacksmith settings, or global blacksmith settings.
scrapper:
permission: blacksmith.edit
usage: /<command> <option> [new value]
description: Used for configuring the selected scrapper NPC
description: Used for configuring the selected scrapper NPC.
scrapperConfig:
permission: blacksmith.admin
usage: /<command> <option/reload> [new value]
description: Used for configuring default scrapper settings, or global scrapper settings
description: Used for configuring default scrapper settings, or global scrapper 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
description: Allows overall blacksmith and scrapper configuration.
default: op
children:
blacksmith.edit: true
blacksmith.use: true
blacksmith.preset: true
blacksmith.edit:
description: Allows changing settings for the selected blacksmith NPC
description: Allows changing settings for the selected blacksmith or scrapper NPC.
default: op
blacksmith.use:
description: Allows the player to repair items using blacksmiths
description: Allows the player to repair items using blacksmiths and salvage items using scrappers.
default: true
blacksmith.preset:
description: Allows the player to use the /preset command
description: Allows the player to use the /preset command.
default: op