⭐AFK Rewards Premium + Polygonal Regions⭐ |1.8.x - 1.21.x| Elevate Player Interaction: Stay Online! icon

⭐AFK Rewards Premium + Polygonal Regions⭐ |1.8.x - 1.21.x| Elevate Player Interaction: Stay Online! -----

AFKRewards, Playtime Rewards, Player Rewards, what could you ask for more? Keep your players online!




- Reload works with 1.8
----------, Feb 7, 2025

Fixed $cache$.yml error
----------, Feb 2, 2025

1.8.x - 1.12.x works again
reward system redone
now you should be warned about invalid materials
----------, Jan 29, 2025



ToastedAFKPremium now works with java 8!
----------, Sep 25, 2024

Events would be registered multiple times sometimes
----------, Aug 28, 2024

Polygonal regions should be more accurate + fixed possible bugs with concurrent hash map
----------, Aug 19, 2024

AFKPass is now purely based on nbtapi :p
----------, Aug 14, 2024

Fixed null pointer exception problem
----------, Aug 12, 2024

Null pointer exception fixed
----------, Aug 6, 2024

Fixed mapmaker error
----------, Aug 1, 2024

Playtime Config changed + small optimizations
----------, Jul 28, 2024

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
----------, Jul 27, 2024

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
----------, Jul 27, 2024

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
----------, Jul 11, 2024

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
----------, Jun 11, 2024

New features:
- fixed %afkrewards_nextreward%

INFO:
- I've updated the plugin to be in accordance to Spigot rules
----------, Apr 13, 2024

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
----------, Mar 24, 2024

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
----------, Feb 29, 2024


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
----------, Jan 24, 2024

We've finally migrated our licensing system to a new one!
----------, Nov 19, 2023

The host's ip has been changed. Use this version in order to make it work again.
----------, Nov 11, 2023

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
----------, Oct 31, 2023

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.
----------, Oct 21, 2023

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
----------, Oct 7, 2023

In some cases, when doing /tplaytime claim, the server would crash. It has been fixed.
----------, Oct 6, 2023

Playtime placeholder now also show weeks!
----------, Sep 28, 2023

You can now also use {timer} inside the title screen, also new placeholder: %afktimerseconds% --> shows the timer in seconds
----------, Sep 27, 2023

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 :)
----------, Sep 23, 2023

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.
----------, Sep 14, 2023

After you reloaded the config by force, players wouldn't be able to re-enter the region, now they can :)
----------, Sep 9, 2023

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)
----------, Sep 9, 2023

Sometimes, when a player QUIT it would throw an error
----------, Sep 6, 2023

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
----------, Sep 3, 2023

The ip limiter wasn't working properly, now it's fixed.
----------, Sep 1, 2023

Title is self-explanatory
----------, Aug 29, 2023

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
----------, Aug 29, 2023

If the default_time was set to -1 it wouldn't work
----------, Aug 25, 2023

IMPORTANT FIX
Use dev_mode: true to check if a player has been registered into your region and many more things!
  1. Initialization and Handling of Variables:
    • Ensured that commandData is initialized before being used in loops.
    • Checked for null before processing commandsSection and regionSection.
  2. HashMap Overwriting:
    • Created a new instance of commandData for each region iteration to prevent overwriting data.
  3. Division by Zero:
    • Added checks to avoid division by zero when calculating ratio.
  4. Config Retrieval:
    • Retained the structure of retrieving values from the config object.
  5. Debugging and Logging:
    • Left the loggers statement for debugging purposes. (if dev_mode=true)
  6. 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.
  7. Robustness and Defensive Programming:
    • Added checks to ensure that null values are handled before processing.
----------, Aug 24, 2023

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
----------, Aug 22, 2023

You can now execute multiple commands in a probability list.
----------, Aug 20, 2023

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.
----------, Aug 14, 2023

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
----------, Aug 12, 2023

So, sometimes the default rank when creating a region wouldn't be taken into the timings account.
----------, Aug 12, 2023

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.
----------, Aug 12, 2023

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
----------, Aug 11, 2023

You can now use timings and give players rewards based on how much they AFKd.

Check number 8 (in the image)
----------, Aug 10, 2023

I've optimized it to work even faster and require even less CPU!
----------, Aug 6, 2023

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.
----------, Aug 5, 2023

User's seconds weren't concatenated anymore. Now it's fixed. Tracking works again
----------, Aug 4, 2023

Resource Information
Author:
----------
Total Downloads: 152
First Release: Aug 1, 2023
Last Update: Feb 7, 2025
Category: ---------------
All-Time Rating:
5 ratings
Find more info at afkrewards-premium.gitbook.io...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings