Features:
* Now you can add ip limiters, a.k.a. only 1 player per ip receive rewards inside the afk region.
Bugs fixed:
* Default_afk_time would mess up with other timings so now it has been removed and replaced with ip_limit
* ShopGUI+ would give an error when the provider was registered
IMPORTANT FIX
Use dev_mode: true to check if a player has been registered into your region and many more things!
- Initialization and Handling of Variables:
- Ensured that commandData is initialized before being used in loops.
- Checked for null before processing commandsSection and regionSection.
- HashMap Overwriting:
- Created a new instance of commandData for each region iteration to prevent overwriting data.
- Division by Zero:
- Added checks to avoid division by zero when calculating ratio.
- Config Retrieval:
- Retained the structure of retrieving values from the config object.
- Debugging and Logging:
- Left the loggers statement for debugging purposes. (if dev_mode=true)
- Data Copying and Isolation:
- Created new instances of lists and maps (ArrayList and HashMap) when storing them in commandData and test to avoid shared data.
- Created deep copies of the test map to ensure complete isolation of data between regions.
- Robustness and Defensive Programming:
- Added checks to ensure that null values are handled before processing.
Timeouts, if you are tired of players being AFK all day and only stay there to receive rewards (some may use bots) you can time them out a.k.a. teleport them anywhere u want or do anything u want with them after the player has received the reward N times
timeout:
times: 0
commands:
- msg {player} you have been timed out!
Dev mode, this is for debugging purposes only
Player rewards Update
rewards.yml
The "rewards.yml" file provides a central control hub for your rewards system. It allows you to tailor messages to guide players, notify them of reward availability, and more. By editing this file, you can shape the communication surrounding rewards and enhance players' understanding of the system.
one_time_rewards.yml
The "one_time_rewards.yml" file introduces the concept of one-time rewards. These are special rewards that players can claim only once within specific time frames. This file lets you create and configure these rewards, setting their appearance, contents, and availability. You can offer both free and premium versions of rewards, adding versatility and exclusivity to your rewards system.
In essence, these configurations enable you to craft a rewarding experience for players on your server. By customizing messages and creating one-time rewards, you enhance player engagement and offer unique incentives for continued participation.
Remember that the specifics of these configurations, as detailed in your provided information, offer the flexibility to match your server's style and goals, making the rewards system truly your own.
Features:
- Playtime Rewards (/tplaytime <check/bank/claim/(admin only)/add/remove)
- Playtime points
- New supported plugin: ShopGUI+ (for playtime points)
- Own integrated shopping system based on playetime points
- AFKPass is also compatible with the player's playtime
- 2 new placeholders
- Playtime GUI
- Playtime Points SHOP
