An open source AFK plugin for Spigot.
- openafk.exempt - Prevents the player from being detected as AFK
- openafk.isafk - Allows access to the /isafk command
- openafk.admin - Allows access to the /openafk command
- openafk.afk - Allows access to the /afk command
- /isafk <username/uuid> - Checks if a player is AFK
- /afkplayers - Gives a list of AFK players
- /openafk - Admin OpenAFK Command
- /afk - Toggles the executors AFK status
-
Parameters with an "(optional)" next to them don't need to be provided unless wanted.
-
Actions that support multiline are compatible with YAML multiline syntax on the content. Example:
- action: "message"
content: |
First line
Second line
Third lineActions are OpenAFKs way to let you orchestrate what happens on events. (You can even register your own actions!)
Displays a temporary or permanent actionbar message to everyone or the actioned player.
- action: "actionbar"
to: "player" #(Optional) - defaults to player, can be player or all
content: "&cHello!"
permanent: true #(Optional)Resetting
- action: "actionbar"
reset: true
to: "player" #(Optional) - defaults to player, can be player or allTeleports the actioned player to a defined location set with /openafk set afkarea.
- action: "afkarea"Supports Multiline Broadcasts a message to an entire server.
- action: "broadcast"
content: "&cContent to broadcast."
permission: permission.node #(Optional) - Sends the broadcast only to people with this permission
repeat: 2 #(Optional) - Amount of times to send the broadcastChanges where a players head is, using yaw and pitch.
(Only one is required but both can be used.)
- action: "look"
yaw: 2
pitch: 5Issues a command by a player or by console.
- action: "command"
by: "player" #(Optional - defaults to player) accepts player or console
command: "/help" # Console commands do NOT use the /Supports Multiline Messages the actioned player with given content once or multiple times.
- action: "message"
content: "&cHello!"
repeat: 2 #(Optional)Shows a temporary or permanent title to the actioned player.
- action: "title"
title: "&cHello!"
subtitle: "&aWelcome back."
fadeIn: 10
fadeOut: 10
stay: 500 # Valid values: integer, "permanent"Resetting
- action: "title"
reset: trueMakes the actioned player visible or invisible to other players.
- action: "invisibility"
type: "show" #Valid values: "show", "hide"REQUIRES TAB Sets the players nametag prefix, suffix or both with TAB
To reset, provide null.
- action: "nametag"
prefix: "&7[&c&lAFK&7] &9"
suffix: "PlayersSuffix" #(Optional)REQUIRES TAB Sets the players tablist prefix, suffix or both with TAB
To reset, provide null.
- action: "tabListName"
prefix: "&7[&c&lAFK&7] &9"
suffix: "PlayersSuffix" #(Optional)Makes the player invincible and sends a message to the attacker on hit.
- action: "invincibility"
to: true # Also accepts falseScripts are lists of actions which are ran in order, these define what actions to do when certain events happen.