- It's a very simple plugin for zone AFK rewards.
- Option to make players invisible in the AFK zone
- Use the region to set the AFK zone
- Possibility to set percentage chances for rewards
- Saving each player's AFK TIME -> Need to connect MySQL!
- Top 5 players ranking -> Need to connect MySQL!
- /nxafkzone reload -> nxafkzone.reload
- /nxafkzone checkupdate -> nxafkzone.checkupdate
Code (YAML):
# ___ ________ __
# / | / ____/ //_/
# / /| | / /_ / ,< NxAfkZone
# / ___ |/ __/ / /| | 1.0.3
#/_/ |_/_/ /_/ |_|
#If you don't know what to do, join our discord, where we will give you advice.
# https://discord.gg/SWpv62Aqp9
# Used to let the plugin determine if your config is up-to-date, so a
# warning can be printed in the server console. Only edit this if you
# know what you are doing, or have just updated your config to the
# newest version.
config-version
: '1.2'
#If you want to receive notifications about the next plugin update, leave it to true
update-notification:
enabled
: true
#Setup your database!
database:
host
:
"localhost"
port
: 3306
name
:
"afkzone"
user
:
"user"
password
:
"password"
#If you don't want to see players in the afk zone, set this option to true
title:
title-text
:
"&c&lYOU AFK FOR THE REWARD..."
subtitle-text
:
"&f%percent% %progress% &f%time%"
#If you don't want to see the player in the afkzone, set this value to true.
hide-players-in-afk-zone
: true
gui:
title
:
"&5TOP AFK PLAYERS"
slot-close
: 22
slot-stats
: 0
filler:
material
: GRAY_STAINED_GLASS_PANE
name
:
" "
close:
material
: BARRIER
name
:
"&cClose"
stats:
material
: BOOK
name
:
"&bYour AFK statistics"
lore:
- "&eRank
:
#%rank%"
- "&eDaily average
:
%daily_avg%"
- "&eAFK všech hráčů
:
%total%"
#Time in seconds (eg 300 seconds = 5 minutes)
reward-time
: 10
# Should add the player to AFK if the progress is 100%?
# When true, the player must leave the AFK zone and enter again to reset progress.
should-leave-afk
: false
#Here is all the news for the NxAfkZone plugin
messages:
Prefix
:
"&8[&6NxAfkZone&8]"
Reload
:
"&cPlugin has been reloaded!"
NoPermission
:
"&cYou dont have permission"
player-enter-zone
:
"&aYou have entered the AFK zone!"
player-leave-zone
:
"&cYou left the AFK zone!"
afk_message
:
"&cYou are now AFK. Leave and re-enter the zone to reset progress."
AfkStats
:
"&a%player%, your afk time is %afk_time%."
#Here, write the name for which region the afk zone should work
region-name
:
"afkpit"
#The sum of the percentages must be 100%. If the sum is greater, it will not work.
rewards:
reward1:
type
:
"command"
command
:
"give %player% diamond 1"
chance
: 20
reward-message
:
"&aYou received a diamond!"
reward2:
type
:
"command"
command
:
"money give %player% 200"
chance
: 30
reward-message
:
"&aYou received 200 coins!"
reward3:
type
:
"command"
command
:
"money give %player% 300"
chance
: 40
reward-message
:
"&aYou received 300 coins!"
reward4:
type
:
"command"
command
:
"money give %player% 500"
chance
: 10
reward-message
:
"&aYou received 500 coins!"
"