[Bukkit | Bungee] TimeoutMessage
1.0.0Adds an extra 'player timed out' message for disconnects caused by connection issues
This plugin adds an alternative disconnect message for players disconnecting due to a connection timeout.


I enjoy making all of my plugins for free, but I need your help to keep them for free.
Config
#The plugin determines timeouts by checking if the ping changes every second
#If the amount of equal pings exceeds this threshold, the quit will be handled as a timeout
threshold: 20
#Message broadcasted when a player times out (leave empty if it should be disabled)
message: "&e%player% timed out"
#If the plugin should disable the default ('... left the game') message when a player times out (Only for Bukkit)
disableQuitMessage: true
API
This plugin also has an API to handle timeouts.
@EventHandler
public void onTimeout(org.inventivetalent.timeoutmessage.bukkit.event.PlayerTimeoutEvent event) {//Bungeecord would be: org.inventivetalent.timeoutmessage.bungee.event.PlayerTimeoutEvent
event.getPlayer();//Player who timed out
event.getLastPing();//Last known ping value
event.getEqualPingCount();//Amount of equal pings tracked (which exceeded the threshold)
event.getTimeoutMessage();//The message sent
}
Links
Please leave a rating if you like this resource.
Donations to support me or this resource are also very much appreciated.
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