Jump to content

Solved - SKRIPT: /stop Script


_iZ_

Recommended Posts

Hey Minehut community! 

I'm in the midst of making an admin menu and one of the things I'd like to add is a stop option. With this stop option, I would like it to automatically save the server before stopping. The problem is, the script does not know when the server is done saving and stops before it is saved. I would like to do this without adding "wait %duration%" because it may still stop before the server is done saving. The first idea that comes to my head is to detect when the console says "Saved the game" but I do not know how to test for when the console says that. Does anyone have a solution?

 

SOLUTION:

Use the "on world save" event

Edited by izzzzthewiz
Solution

» IGN: _iZ_ «

» Joined: 12/18/2016 «

» VIP: 1/13/2018 «

» Helper: 1/29/2021 «

» [<3]: 5/8/2021 «

» Skript dev «

» Discord: iZz#0420 «

I have diabetes

React to this if I was helpful, found this interesting, or you're just nice 🙂

Link to comment
Share on other sites

4 hours ago, Preinstalled said:

I dont get it, are you trying to fix a /stop skript?

It seems that he's found a solution

Junior Mod (01/04/2020) - Resigned 

 Discord » Koronotchi#0001 
Minecraft Username » Koronotchi 

image.png.17a385f298c8969f6b1cf03e27ee50d3.png

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...