Posted May 26, 20169 yr Is there a code I can use to initiate a server stop? I'm setting up a matchEnd event and I'm running a script to instantly restart the server when it closes. Now all I need to do is actually make the server close after a game. http://i.imgur.com/vmqyxTE.png[/img]
May 26, 20169 yr Author Is there a code I can use to initiate a server stop? I'm setting up a matchEnd event and I'm running a script to instantly restart the server when it closes. Now all I need to do is actually make the server close after a game. http://i.imgur.com/vmqyxTE.png[/img]
May 26, 20169 yr MinecraftServer#initiateShutdown(); // on 1.9 What version? Look for method that sets "this.serverRunning = false;". 1.7.10 is no longer supported by forge, you are on your own.
May 26, 20169 yr MinecraftServer#initiateShutdown(); // on 1.9 What version? Look for method that sets "this.serverRunning = false;". 1.7.10 is no longer supported by forge, you are on your own.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.