CHANGES IN 2.4.4
- Added an announcer which broadcasts a customizable message to all players when an item is donated to Charity.
The announcer supports placeholders for player and item name, and respects custom item names
The announcer can be toggled in messages.yml and set announce_item_given to empty "" to disable
When custom names are unavailable, material names are used
- All major GUI labels, lores & togglee options are now loaded from messages.yml, making them fully customizable.
- How-to book and stats items in the GUI are now optional, you can enable/disable them in messages.yml!
- Minor code cleanup, removed unused constants, improved variable scope handling.
Please update your messages.yml file!
Code (YAML):
# Plugin Prefix
prefix
:
"&6&lCharity &r&l&8»&r &b"
# Item/Shop Messages
claim_success
:
"&aYou claimed %item%!"
not_your_item
:
"&cYou cannot claim your own item."
item_given
:
"&aYour item was given to Charity!"
item_reclaim
:
"&aYour item was reclaimed from Charity!"
item_expired
:
"&cA Charity item expired."
announce_item_given
:
"&6&lCharity &8» &e%player% &7just added &b%item% &7to Charity!"
# Change to "" to disable!
# Permission Messages
no_permission
:
"&cYou do not have permission."
unknownCommand
: '&cUnknown command. Type /ch help for a list of commands.'
reload_success
:
"&aCharity config reloaded."
item_blacklisted
:
"&cYou cannot give this item to Charity!"
# Cooldowns and Limits
cooldown
:
"&cPlease wait {seconds} seconds before giving again."
claim_limit_reached
:
"&cYou have reached your daily claim limit for today!"
wait_action_cooldown
:
"&cPlease wait before performing this action again!"
# Console Messages
plugin_loaded
:
"[Charity] Plugin loaded successfully!"
bStats_enabled
:
"[Charity] bStats Telemetry is Enabled!"
bStats_disabled
:
"[Charity] bStats Telemetry is Disabled!"
ker35api_enabled
:
"[Charity] Ker35 API Telemetry is Enabled!"
ker35api_disabled
:
"[Charity] Ker35 API Telemetry is Disabled!"
# GUI Titles
gui:
title
:
"&3&lCharity Items"
previous_page
:
"&ePrevious Page"
next_page
:
"&eNext Page"
show_how_to_book
: true
show_stats
: true
how_to_book_name
:
"&dHow to Use"
how_to_book_lore
:
-
"&7Left-click an item to claim it"
-
"&7Right-click to re-claim"
-
"&eEarn points for each donation!"
stats_item_name
:
"&6Stats"
stats_item_lore:
- "&fPoints Donated
:
&a{pointsGiven}"
- "&fPoints Claimed
:
&c{pointsTaken}"
- "&fItems Donated
:
&a{itemsGiven}"
- "&fItems Claimed
:
&c{itemsTaken}"
-
"&7Page &e{page}&7/&e{maxPage}"