AFK Rewards

AFK Rewards

Plugin

Setup afk rewards for your server with worldguard regions and worldedit rewards.

Server AdventureEconomyGame MechanicsManagementTechnologyUtility

1,116 downloads
11 followers
Createda year ago
Updated8 months ago

Follow Save
Host your Minecraft server on BisectHosting - get 25% off your first month with code MODRINTH.

This plugin allows you to setup afk rewards using world edit and world guard regions. Using world guard regions, you can configure everything about this plugin. Add vault money, items and configure the time it takes for the player to receive those rewards.

Setup

There are 2 ways you can setup this plugin, we will go over both ways on configuring the ways to do so.

The first way to do this is to do it in config. Your config will look like this:


# MAIN CONFIG FILE FOR AFK REWARDS

# CONFIGURATION STARTS HERE:
afk-region: "afk" # Change this to your WorldGuardRegion
afk-time-limit: 1800 # time in seconds before the player is considered AFK

# These are the messages that are sent to the player when they use the command
Prefix: '&7[&bAFK Rewards&7]'
no-permission: '&cYou do not have permission to use this command'
reload: '&aSuccessfully reloaded the config!'

afk-rewards:
  - time: 300
    reward: "diamond x5"
  - time: 600
    reward: "emerald x10"
  - time: 900
    reward: "golden apple x1"
    money-reward: 1000

Configuration

Configuring this is strait forward. The money-reward hooks with vault. The reward: are the items that are given to the player. The time is the amount of time in seconds that it takes for the player to get the reward after they are afk.

The afk-region: is the world guard region where the player needs to stand inside to get the rewards. The afk-time-limit: is the time it takes for the player to be considered afk and start the timer for rewards.

External resources



Project members

Incbom

Owner


Technical information

License
Apache-2.0
Project ID