
AfkTitle is a simple plugin to send a title to a player when they go Away From Keyboard. You can configure these titles and change the time before going AFK. This plugin also comes with a small API

First, put the plugin in the plugins folder in your server. Then start your server. The default config has default settings. You can configure these like this:
// config.yml
afk-time : 180 // the time before a player goes afk in seconds
welcome-back-main : '&cExample' // the title sent when a player comes back
welcome-back-sub : '&7Example subtitle' // the subtitle sent when a player comes back
// titles.yml
titles :
example : // just the id, just don't clone it
main : '&eThe main title'
sub : '&7The subtitle'

To make your life a bit easier, we also provide an API for developers. It doesn't contain much currently, but this is it for now:
AfkUtil. isPlayerAfk ( Player player ) // returns a boolean telling if the player is AFK or not
AfkUtil. resetPlayer ( Player player ) // stop a player from being AFK
AfkUtil. getAfkPlayers ( ) // returns a list of players that are AFK
// PlayerAfkEvent
getPlayer ( ) // get the player who went AFK
setCancelled ( ) // set if the event is cancelled
isCancelled ( ) // returns if the event is cancelled
If you enjoy this plugin, please leave a rating. If you find any bug you can report it.
You can find support for this plugin on our Discord ( https://discord.gg/R6M7mAr ) or go to the discussion page of this plugin
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta