⚠️ The config file has been updated, and by so, you have to add new content to your config file. See the changes right here or in the main plugin page!
Hi there!
Thanks to a suggestion of @Zsömi on the
Discord Support Server (
https://discord.gg/hExzXTQCtN), now you can enable a
whitelist or a blacklist to limit what items your users can
edit!
If you enable this functionality,
only the items you add to the
"allowed_items" list will be allowed to
edit them;
But, if you disable the functionality, you can add items to the
"blocked_items" list, so
those items won't be editable
(this is optional and disabled by default, more info in the config file)
If you want to avoid the whitelist, you will have to add a new permission to your users:
itemrenamer.whitelist
Tested in Paper, Purpur, Spigot and Bukkit
⚠️
If you don't want to reset the config file, please, add these lines to your config file inside the "options"
Code (YAML):
options
:
# add it after the minimessage toggler
item_whitelist:
enabled
: false
allowed_items
:
-
"DIAMOND_CHESTPLATE"
-
"COOKIE"
-
"IRON_SWORD"
blocked_items
:
-
"none"
And if you want to
customize the message when a player tries to edit a blocked item, add this:
Code (YAML):
messages
:
# Add it after the last message, such as "max_itemlore_lines_reached"
item_not_allowed
:
"%irr_prefix% &cYou are not allowed to rename or add lore to this item!"
-
✔ Added a new
item whitelist and blacklist functionality!
⚠️
REMEMBER to update the "minimessage" value in config from
false to
true
-
✔ Added a new permission to avoid the whitelist/blacklist!
itemrenamer.whitelist
-
ⓘ General code fixes and optimizations (QoL)
Thanks for your download!
❤ New Discord server to receive support for my plugins!
You can access it here:
https://discord.gg/hExzXTQCtN
❤ Don't forget to mark this plugin as "Favorite"!
☕︎ If you would like to support me, you can do so now through Ko-Fi!
https://ko-fi.com/xdlob9