Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Information
This PR fixes #2212.
Follow up of PR #5585.
Details
Proposed fix:
The command
/sell hand
and/sell blocks
and a sell sign will require you to have the permission corresponding to the item in the formatessentials.item.<buy|sell|free>.<itemName>
. Players still need the permissionsessentials.sell.<hand|inventory>
andessentials.signs.<free|buy|sell>.use
depending on which method they sell their items.The same is required to use buy and free signs. Players will require the permission
essentials.item.<buy|sell|free>.<itemName>
andessentials.signs.<free|buy|sell>.use
. However there is no command for buy and free.To use an enchant sign, players will need the permission
essentials.enchantments.<enchantmentName>
along withessentials.signs.enchant.use
.These features are disabled by default and are configurable in the config.yml file as
per-item-transaction-permissions
andenchant-sign-restrictions
.The enchant sign has also been updated to capitalise the first letter of the enchantment name and puts the currency symbol if not added by the player on creation of the sign.
Environments tested:
OS:
Windows
Java version:
21.0.
Demonstration: