ModsJava
[Bukkit | Bungee] TimeoutMessage
Minecraft Java mod. Download on the author's site.
⬇ Download on SpigotThis plugin adds an alternative disconnect message for players disconnecting due to a connection timeout.
Config
API
This plugin also has an API to handle timeouts.
Links
Config
Code (YAML):
#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
#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.
Code (Java):
@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
}
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.
Donations to support me or this resource are also very much appreciated.
Quick facts
- Edition: Minecraft Java
- File type: .jar
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
[Bukkit | Bungee] TimeoutMessage is a free Minecraft Java mod. Downloaded 397 times (via Spigot). Download it and open it directly in the game.
![[IMG]](http://proxy.spigotmc.org/03b89c2282b33ef720a7e5ca8cfbbb31681bc8b8?url=https%3A%2F%2Fstatic.spigotmc.org%2Fimg%2Fbtn_donate.gif)