此插件允许你使用 WorldEdit 和 WorldGuard 区域来设置 AFK(挂机)奖励。利用 WorldGuard 区域,你可以配置此插件的所有功能。添加 Vault 货币、物品,并配置玩家获得这些奖励所需的时间。
安装配置
有两种方法可以设置此插件,我们将详细介绍这两种配置方式。
第一种方法是在配置文件中设置。你的配置文件如下所示:
# AFK 奖励主配置文件
# 配置从这里开始:
afk-region: "afk" # 将其更改为你的 WorldGuard 区域名称
afk-time-limit: 1800 # 玩家被视为 AFK 之前的时间(秒)
# 当玩家使用命令时发送给玩家的提示消息
Prefix: '&7[&bAFK Rewards&7]'
no-permission: '&c你没有权限使用此命令'
reload: '&a配置文件重新加载成功!'
afk-rewards:
- time: 300
reward: "diamond x5"
- time: 600
reward: "emerald x10"
- time: 900
reward: "golden apple x1"
money-reward: 1000
配置说明
配置过程非常简单直接。money-reward 与 Vault 挂钩。reward: 是给予玩家的物品。time 是玩家在处于 AFK 状态后获得奖励所需的秒数。
afk-region: 是玩家需要站立的 WorldGuard 区域,以便获得奖励。afk-time-limit: 是玩家被视为 AFK 并开始计算奖励计时器所需的时间。
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.
评论 0
登录后参与评分
还没有评论,来抢沙发吧