## ⚠️ 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](https://modrinth.com/plugin/itemrenamerreloaded)!
❤️ Don't forget to mark this plugin as "Favorite"!
🆘 **Need any help? Join the Discord Support Server!**
https://discord.gg/hExzXTQCtN
☕ Any donation would be appreciated! Thank you!
[https://ko-fi.com/xdlob9](https://ko-fi.com/xdlob9)
---
Hi there!
Thanks to the suggestion of @bur on the Discord Support Server ([join it by clicking here!](https://discord.gg/hExzXTQCtN)), now you can enable a **whitelist or a blacklist** to limit what color codes can your users use to rename or add lore to items!
If you enable this functionality, **only** the colors you add to the **"allowed_colors"** list will be allowed to **use when renaming or adding lore to an item**;
But, if you disable the functionality, you can add the color codes to the **"blocked_colors"** list, so **those colors** won't be usable when renaming or adding lore to items _(this new feature is optional and is disabled by default, more info in the config file)_
If you want to avoid the whitelist, you will have to set a new permission to your users: **itemrenamer.whitelist.colors**
---
⚠️ **If you don't want to reset the config file, please, add these lines to your config file inside the "options"**
```
options:
# add it after the item whitelist
color_whitelist:
enabled: false
allowed_colors:
- "&a"
- "&b"
- "❵"
blocked_colors:
- "none"
```
And if you want to customize the message when a player tries to use a non-allowed color code, add this new message:
```
messages:
# Add it after the last message, such as "max_itemlore_lines_reached"
color_not_allowed: "%irr_prefix% &cYou are not allowed to use one or more colors to rename or add lore to this item!"
```
And, if you access the allowed/blocked colors list using the new subcommand **/irr colors**, you can modify the "title" of the messages by adding these new messages on the "other" category:
```
other:
help_allowed_items: "&b=== &aAllowed &ecolors list &b==="
help_blocked_items: "&b=== &cBlocked &ecolors list &b==="
help_all_colors_allowed: "%irr_prefix% &aAll colors can be used to rename or set lore to your items!"
```
---
## Changelog
- ✅ Added a new **color codes use whitelist and blacklist** functionality!
> ⚠️ **REMEMBER** to add the config values to your config file! _(as I mentioned above)_
- ✅ Added a new permission to avoid the color codes whitelist/blacklist! **itemrenamer.whitelist.colors**
- ✅ Added a new subcommand so your players can know what color codes are allowed and/or blocked: **/irr colors** (with its new permission node: **itemrenamer.base.colors**)
- ℹ️ General code fixes and optimizations (QoL)
Thanks for your download!
Optional dependencies
PlaceholderAPI
Any compatible version
Developer information
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle.
maven { name = "Modrinth"; url = "https://api.modrinth.com/maven" }