_iZ_ Posted March 6, 2020 Share Posted March 6, 2020 (edited) 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 March 6, 2020 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 « React to this if I was helpful, found this interesting, or you're just nice Link to comment Share on other sites More sharing options...
Preinstalled Posted March 7, 2020 Share Posted March 7, 2020 (edited) I dont get it, are you trying to fix a /stop skript? Edited March 7, 2020 by Preinstalled First Join: October 21st, 2017VIP: November 11th, 2017PRO: August 29th, 2018VIP Again: December 3rd, 2018Legend: Not achieved yet. Link to comment Share on other sites More sharing options...
zKoro Posted March 7, 2020 Share Posted March 7, 2020 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 ⮜ Link to comment Share on other sites More sharing options...
Preinstalled Posted March 7, 2020 Share Posted March 7, 2020 Yeah took me long enough to understand it, First Join: October 21st, 2017VIP: November 11th, 2017PRO: August 29th, 2018VIP Again: December 3rd, 2018Legend: Not achieved yet. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now