Version error
Small update with some small fixes
Full REVAMP! All of the bug fixes like bossbars, reload errors, etc. have been fixed. Also, I've done A LOT more optimizations, should be at least 50% more efficient than before.
P.S. Also posted on github :p
1.21 support
Bug fixes:
- Memory Leak
- 1.20.6 support
Quick fix, rewards were not being given.
Optimization + random "null" error should be fixed
Removed useless print
API UPDATE! By using the 2.0.1 version you will now be able to use the event AFKRewardEvent whenever a player receives a reward. Check our github for more
API! You can now integrate ToastedAFK api inside your plugin if you're looking to create new things + I made some code organization
The plugin would give an error related to chunks when starting up. Now it's fixed.
TIMEOUTS + PROBABILITIES!
You can now add lists to probabilities and also timeout players for spending too much time inside the afk arena (great for bots)
Timeouts: timeout: times: 0 # put 0 to not use this feature commands: - "msg {player} you have been teleported back to spawn!" # - "tp {player} -2217 94 -490"
New probabilities: probability_commands: first_prob: commands: - "msg {player} first_prob" - "msg {player} 50%" chance: 50.0 second_prob: commands: - "msg {player} second_prob" - "msg {player} 35%" chance: 35.0 third_prob: commands: - "msg {player} third_prob" - "msg {player} 15%" chance: 15.0
PlaceholderAPI didn't sometimes register %afktimer%. I included it as a soft dependency. Now it should work 99% of the times.
Inside the loading screen, you can now also use the actionbar's timer. Just put {timer} there
Fixed 2 second decreasing instead of 1
Can't abuse /tafk bossbar anymore, added the perms: afk.bossbar, afk.list, afk.check
Misuse of parallel streaming that leads to issues
Fixed dupe glitch rewards bug
New features:
- Ability to now use the loading screen in actionbar and bossbar!
- Text for a player when he enters/leaves a region
- Faster player checking, I've implemented a much better player finding algorithm based on chunks, 5x more efficient than the other one
- Reward Synchronization, true/false (by def false) players will now all be handled their timers by a global timer
- In random commands you can now put more commands to be executed at once
- Each command...
And a l