COWMODSКаталог модов

AFK Protection

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

Автор: Gizzard7396обновлён 27 мар. 2026 г.
Механики игрыОбщение

Описание

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

Последние версии

Все версии →
release

AFK Protection 1.2.2

1.2.2
27 мар. 2026 г.313Minecraft: 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11paper, purpur
Скачать
Что нового
- (v1.2.1 hotfix) Fixed /afk not working unless targeted - (v1.2.1 hotfix) Fixed damage not resetting afktime - Fixed /afk not working for toggle sprint users
beta

AFK Protection 1.2.1

1.2.1
26 мар. 2026 г.21Minecraft: 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11paper, purpur
Скачать
Что нового
- Added PlaceholderAPI Expansion %afkprot_status%, %afkprot_tag% - Taking damage will now reset your afk timer
release

AFK Protection 1.2

1.2
25 мар. 2026 г.18Minecraft: 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11paper, purpur
Скачать
Что нового
- Added /afk command with configurable delay, afkprotection.command.afk - Added /afkprot reload, afkprotection.command.reload - Added minecraft color support to configurable messages - Added Optional PlaceholderAPI support Dont forget to update/delete your old config, a new one will be generated.
release

AFK Protection 1.1

1.1
8 авг. 2025 г.257Minecraft: 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10paper, purpur
Скачать
Что нового
- Added InventoryClickEvent - Added PlayerItemHeldEvent - Added PlayerSwapHandItemsEvent - Updated dependencies
release

AFK Protection 1.0

1.0
24 мая 2025 г.125Minecraft: 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7paper, purpur
Скачать
Что нового
- Initial Release