Skip to main content

How to Prevent Players from Being Kicked When Shutting Down a Server?

Want to ensure players aren’t kicked from the network when a server shuts down? It’s simple! With Goxy, you can configure the system to transfer them to another server instead of interrupting gameplay. Follow the step-by-step guide below to set it up.

ℹ️Guide Objective
This guide will show you how to configure server shutdowns to transfer players to the First Choice Server or another server of your preference.

Easiest Method: Using

#!{VOID}

Add to the Kick Message a Special Tag

#!{VOID}

For Goxy, this is an instruction to transfer the player back to the First Choice Server instead of kicking them.

settings:
shutdown-message: "Serwer został wyłączony#!{VOID}" # Remember to add quotation marks "", otherwise characters after # will be treated as a comment.
warningCaution
Ensure the First Choice Server is active and properly configured to avoid transfer issues.

More Control: Transferring to Any Server

Want more control over which server players are transferred to? You have several options!

Option 1: Plugin with Goxy API

You can create your own plugin to transfer players to the appropriate server before shutdown. Goxy makes it easy to transfer a player to the server they were previously on with just a few lines of code using our API:

Player bukkitPlayer;
GoxyPlayer player = GoxyApi.getPlayerStorage().getPlayer(bukkitPlayer.getUniqueId());
GoxyServer server = player.getPreviousServer();
if (server != null) {
player.connect(server);
}
Done!
This code will transfer the player to the server they were on previously, if available. Otherwise, you can define a default server.

Option 2: /send Command

The /send command offers great flexibility! You can use it to transfer all players to any server before shutdown. Example:

/send * server_name

💡Practical Use
Execute this command before shutting down the server to smoothly transfer all players. For example: /send * lobby.

Additional Notes

🔧Configuration Testing
Before applying changes, test the configuration with a small group of players to ensure everything works as expected.
📢Problem Not Resolved?
If this didn’t help, check our documentation—you might find the answer to your questions there: https://docs.goxy.io/.
🔗Quick Access to Everything
Here are the key links to our resources—all in one place!
ResourceLink
Goxy Homepagegoxy.io
Admin Paneldashboard.goxy.io
Status Pagestatus.goxy.io
Discord CommunityJoin Discord
Awesome Goxy ListView list
API DocumentationAPI Docs
📢Need Help?
Contact us!
We respond to all messages within 24 hours on Discord.

🎉 Configure Server Shutdown and Enjoy Gaming!

Join Goxy and unlock more possibilities!

REGISTER FOR FREE