1.8.x - 1.12.x works again
reward system redone
now you should be warned about invalid materials
ToastedAFKPremium now works with java 8!
Events would be registered multiple times sometimes
Polygonal regions should be more accurate + fixed possible bugs with concurrent hash map
AFKPass is now purely based on nbtapi

Fixed null pointer exception problem
Null pointer exception fixed
Playtime Config changed + small optimizations
New features:
- Custom Model Data Support for all GUIs (admin gui excluded)
- Changed empty, invalid and fill items for afkpass
- Changed the default messages for playtime to seem more beautiful
- Added next and previous buttons for afkpass
New features:
- Regional Stat Saving (add this inside config.yml
regionalStatSaving: false # Saves the progress of a player from a region
)
Bugs fixed:
- Memory leak fixed
New features:
- Polygonal regions (still in beta so might not fully work properly)
- Optimizations (lots and lots)
- Error handling
Bug fixes:
- Sometimes players would get rewards even if they weren't in the region
- Sometimes players wouldn't get rewards
- Commands now work again
- Subregions error in tab completer
- TONS of memory leaks fixed
- Optimized player lookup in placeholders, commands, etc.
- Sometimes the logger wouldn't log all AFK player activities
- When using the debug mode you would get lag spikes if the region was too large
- Removed $subregion$.yml from commands and gui, now it works just as a single internal file
- Playtime would sometimes not fully log, now it's fixed + the shop as well
- Optimized mode should now work again
New features:
- Loads faster
- 1.20.6 support
Bugs fixed:
- Sometimes not giving rewards
- Sometimes getting rewards when being out of bounds
- Sometimes logs weren't registered
- Errors thrown when using "check" method
- Fixed other semi-important bugs which I can't remember right now
New features:
- fixed %afkrewards_nextreward%
INFO:
- I've updated the plugin to be in accordance to Spigot rules
New features:
- AFKPass added new commands (reload, reset [all/player])
- AFKPass added new fill item to make the gui look more full
- Added new placeholder for AFKPass to check the player's highest tier: %afkpass_tier%
- Added the ability for Player Rewards to reset the player's/all reward type
- Added new placeholder %afkrewards_nextreward% to check the player how many minutes/seconds/hours/etc. has to wait until next reward
Bugs fixed:
- Fixed the possibility of any player that had trewards.use to reload the config of it
AFK Rewards Premium v2.5.9.2:
(no new major updates right now, but some smaller ones will come soon, I've made this one as a quick update)
New features:
- The licensing system now is async meaning if the licensing bot @Licenses#9015 is down, the server shouldn't crash (for some people) anymore.
Bugs fixed:
- /tplaytime didn't work
New features:
- 1 new config setting:
use_subregions: false
- 90% of player checks now work asynchronously
- New method called "check" which works only async and also when a player teleports it should make him join the region (haven't fully tested it on big player bases but it should work better than the other one)
Bugs fixed:
- When player restarts/stops and some players are inside a region and they get kicked it pops up an error, now it's fixed
- Subregions performance issues
- If you were using any method beside "optimized", "optimized" would still check for player movement
We've finally migrated our licensing system to a new one!
The host's ip has been changed. Use this version in order to make it work again.
New features:
- methods, you can now use the checking methods, they can either be optimized or check, put this in config.yml:
player_check_method: "optimized" # this checks the player's movement for when he enters a region, however sometimes he can't enter a region
# or use 'check' to automatically check all players every second (not as optimized as the first one)
Bugs fixed:
- On 1.8 each time you would leave the region you would get an error PLAY_ONE_MINUTE
- Another bug when leaving the region was when the player quit, now it's fixed
- Fixed some optimization issues
Features:
* You can now choose the format when the player enters/leaves a region:
regions:
type: titlescreen # you can also put titlescreen, chat or actionbar, this also goes for subregions, aka regions type = subregions type
entered: '&cYou &fentered &can afk region!'
left: '&cYou just &fleft &cthe afk region!'
Bugs fixed:
* When a player didn't have perm, you would get an error in the console, now it's fixed.
you can now use most of the /tplaytime commands in console
new settings inside playtime.yml
1. Time format week update:
time_format:
week: " week, "
weeks: " weeks, "
...
2. remove_playtime_inside_afk_region:
remove_playtime_inside_afk_region: false # after a player leaves a region, it will calculate the total time spent in there and remove the playtime he spent there
In some cases, when doing /tplaytime claim, the server would crash. It has been fixed.
Playtime placeholder now also show weeks!
You can now also use {timer} inside the title screen, also new placeholder: %afktimerseconds% --> shows the timer in seconds
New features:
* Player invisiblity, now you can make it so if there are too many players, activate invisiblity (reduces player lag)
* Global region override, now you can put like 5 regions in the same place and for each one give different rewards (good for donors)
* Subregions! That's right, subregions. Players with a specific block will now be able to have their own afk region at their own base! Wow, think of that. You can give custom subregions using the command /silentgive {player} {item} {amount} {true/false} if it's true then the block (only this case) will have at the end an "encrypted" lore line with the block id.
* And a lot more mini features which you won't notice but they add up
Bug fixes:
* I haven't found really that many bugs, just some minor ones. Also, cached a lot of variables A.K.A. optimization

Sometimes if the players glitched out of the rewards section without being removed from the region they would still be able to get rewards. Now it's fixed and logged.
After you reloaded the config by force, players wouldn't be able to re-enter the region, now they can

Now you can see each players when he left/entered a region and what rewards they've received too at what timestamp. This is useful because some players might lie about them not receiving any rewards from the afkzone. It's better to be safe with this! To activate/disable this feature, inside the performance section make logs : true/false (true by default)
Sometimes, when a player QUIT it would throw an error
The new rewarding system for afk regions is now released!
It is now 3x faster than the old one.
New features:
- instead of xp_usage_when_in_region, it's now block_xp_usage_when_in_region
The ip limiter wasn't working properly, now it's fixed.
Title is self-explanatory
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
If the default_time was set to -1 it wouldn't work
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
You can now execute multiple commands in a probability list.
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
So, sometimes the default rank when creating a region wouldn't be taken into the timings account.
Ok, so before it didn't work if the ratio of time was bigger than 3. Now it has been dynamically remade to work with any type of time-to-rank-to-second ratio.
So, I forgot about the donors oops :?
Now everything is dynamic, basically the timings can also be applied to donors, for example:
The default has to wait 30 seconds to get 3 rewards 10, 20 and 30
The op rank has to wait 15 (example) and he will get the 3 rewards in 5, 10 and 15
You can now use timings and give players rewards based on how much they AFKd.
Check number 8 (in the image)
I've optimized it to work even faster and require even less CPU!
Added license key requirement. To use the plugin now you need to make a ticket on discord so I can give you the license key.
User's seconds weren't concatenated anymore. Now it's fixed. Tracking works again