AFKRewards

The most lightweigh plugin to reward your players for staying a certain amount of time in a region. The main utility of the plugin is to reward players for staying AFK in a region, but you can use it to make whatever you want with the rewards system, that allows you to execute commands every X amount of time while a player stays in a defined region.

 

Main Features

  • Configure a message that allows color formats when a player joins or leaves the plugin regions.
  • Configure the amount of time (in every X minutes) for each region separately.
  • Configure a list of commands to be executed when a player stays that amount of time in the region.
  • Stop everyone's timer with just executing a command.
  • Reloading and saving configurations in-game without restarting the server.attachment.png

Requirements

Minecraft Version

The plugin has been tested in 1.18 and 1.19 with Spigot and Paper and it works perfectly, if you test it in another version or server software that is not listed here, feel free to tell me about it on Discord so I can update this information.

Dependencies

The plugin REQUIRES WorldGuard and WorldGuardEvents to work.

 

Commands and Permissions

  • /afkr setafkregion <regionName> - Creates the configuration of that region in the plugin's config and makes it start working. The region name should be a alredy created WorldGuard region and you must be in a world where a region with that name exists. - afkr.admin
  • /afkr version - Tells you the plugin's version. - afkr.admin
  • /afkr reload - Reloads the plugin's config. - afkr.admin
  • /afkr resettimers - Stop everyone's running timers. This is mainly made to fix and prevent in case someone finds a bug that breaks the timers or makes them run infinitely. If thats the case, please, report the bug at the Discord. You can also use it if you know what are you doing and you want this utility for something like an event. - afkr.adminattachment.png

Configuration File

It contains the following:

<Name of the region>:

    timeForRewards: <Time in every X minutes to execute the commands listed>

    joinMessage: <Message to send the players when they join the region>

    leaveMessage <Message to send the players when they leave the region>

    commands: <List of commands that will be executed every X minutes defined in the timeForRewards        section, (use <player> to refer to the player name)>

Example

attachment.png

Support

Discord