- Progress Bar Color Fix: Resolved an issue whee
completedBarColoranduncompletedBarColorbeing incorrectly assigned.- IP Address Limit Option: Introduced the
afkzoneLimitPerIpconfiguration option, which restricts access to the zone based on IP address. Setting this value to-1disables this feature- Permission Check: Implemented a permission check within the
AfkzoneEnterEvent, effectively preventing players from entering the zone if they lack the necessary permissions. (ForafkzoneLimitPerIpand afkzone required permission)- AFK System Overhaul: Redesigned the entire AFK zone system to track player AFK time instead of relying on server timers.
- Rewards System Integration: Removed the commands section from the AFK zone data structure and replaced it with a rewards section. This change enables the inclusion of chance-based rewards, such as items and commands.
- Permission-based rewards: Introduced a
permissionentry to the AFK zone rewards system. If specified, the reward will only be given if the player has the required permission. Leave the field empty to create non-permission-based rewards.- Updated Placeholder System: Recoded the placeholders to align with the new AFK zone system.
- Sound Notifications for Rewards: Added options for
soundRewardStatusandsoundRewardType, which trigger sound effects when rewards are granted to players.- Title Notifications for Rewards: Introduced new options for reward notifications, including
titleRewardStatus,titleRewardTitle, andtitleRewardSubTitle.- Custom Models Support: Fixed an issue that prevented the use of custom models for items in the shop.
- Placeholders in Messages: Added support for placeholders like
{time}and{time_short}in thezoneLeaveconfig entry.
- The
- Reward Tries Limit: Introduced a new maxRewardTries entry to the configuration for AFK zone rewards. This feature prevents memory leaks by limiting the number of reward attempts when all rewards require a permission that the player does not have.
- Added
{before}and{after}placeholders to the afkzone shop transaction embed (currencyTransactionEmbed):{before}placeholder will now display the user's balance before the transaction.
- The{after}placeholder will show the updated balance after the transaction.
- Added Category Placeholder: Added
{category}placeholder in theshopTransactionEmbedthis displays where the item has been purchased- Added UUID Placeholder: Added
{uuid}placeholder in thecurrencyTransactionEmbedsetting, this will display the receiver ingame uuid.
➻ AddedreopenPreviousMenuoption to config - (This new option in the configuration allows for toggling whether or not the previous menu automatically reopens after certain actions.)
➻ AddedGemsTransactionEvent[cancellable] event - (This event is triggered whenever something related to "Gems" is modified using the /gems command.)
➻ Added discord webhooks support - (This feature sends notifications to a Discord channel whenever a shop purchase is made or any modification to the gems currency happens.)
➻ Added/gems open <player> [category]command - (This command opens the gems menu for a specific player. Optionally, you can specify a category to jump directly to a certain section within the gems system.)
➻ Added/gems reload(Reloads all Data e.g Configs and Gem shop)
➻ Added/afkzone gems <zone> <amount>(Sets the amount of gems the zone gives)
➻ Added the ability to parse PlaceholderAPI through commands, can be toggled viaparse-commands-with-papiconfig option. This would allow for usage of features like https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#randomnumber, and much more.
