▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Плагины/AFK Protection
AFK Protection

AFK Protection

Prevents players from being targeted or damaged while AFK, configurable.

Оцените первым
560
6

A Paper MC Plugin that prevents players from being targeted or damaged while AFK. Has configurable timer, messages, prefixes, and suffixes!

LuckPerms is needed for suffix/prefix. Messages compatible with PlaceholderApi.

Commands:

/afk - afkprotection.command.afk

/afkprot reload - afkprotection.command.reload

Default Config:

# 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

Часто задаваемые вопросы

Совместимость

Minecraft: Java Edition

1.21.x

Платформы

Поддерживаемые окружения

Сервер

Зависимости

Ссылки

Создатели

Детали

Лицензия:
Опубликован:1 год назад
Обновлён:3 месяца назад
Главная