AFK Protection
Prevents players from being targeted or damaged while AFK, configurable.
Quick challenge
How far can you run before the mobs catch you?
Minecraft check
Confirm your run
Complete the quick check to get your code.
AFK Protection
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: ```yaml
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 ```