Compatibility
Minecraft: Java Edition
Platforms
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Creators
Details
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.