AFK Protection

插件

· 作者 Gizzard

防止玩家处于 AFK 状态时被攻击或受到伤害,支持自定义配置。

0 本站下载 0 关注 更新于 7 个月前

最新 1.2.2 · 1.21.11 · Paper / Purpur

一键开服(送7天)

一个 Paper MC 插件,防止玩家处于闲置(AFK)状态时被锁定目标或受到伤害。 拥有可配置的计时器、消息、前缀和后缀!

需要 LuckPerms 来使用后缀/前缀。消息兼容 PlaceholderAPI。

命令:

/afk - afkprotection.command.afk

/afkprot reload - afkprotection.command.reload

默认配置:

# AFK Protection configuration

# Timer - # of seconds before a player is considered AFK
# Delay - # of seconds before /afk activates, anti-cheese
afk:
  timer: 300
  delay: 5

# Use %player% for display name, PlaceholderAPI optionally supported
# %delay% will only be parsed in messages.pending
messages:
  broadcast: true
  +afk: "&e%player% has gone afk"
  -afk: "&e%player% has returned"
  pending: "&7AFK in %delay% seconds..."
  canceled: "&4AFK canceled, you moved!"
  notaplayer: "&4Only players can be AFK!"

# Below option requires PlaceholderAPI
# %afkprot_status% - returns true or false, useful for things like the TAB plugin's conditions.
# %afkprot_tag% - returns tag if afk, recommended to use this over luckperms options
papi:
  status_true: "true"
  status_false: "false"
  tag: "&7[AFK]"

# Below options require LuckPerms
prefix:
  enabled: false
  value: "&7[AFK]"
  weight: 1

suffix:
  enabled: false
  value: "?"
  weight: 1

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源