Minecraft server autosave with notification?

Du
- in Servers
16

I really need help with Windows Batch files. So first of all my problem: I have had my own MInecraft server since my own time. Now, due to some annoyances, I have written a small batch file that does the auto save for me. I managed to do it that normally, but I would still like the players on the server to get some of it, for example, get a message in the chat with the / msg command. Unfortunately, I don't know how the autosave batch file should send a message to the server cmd window because you can execute the Minecraft commands in it, so please also note the players. Basically, I just need to know how a batch file can send text to an open cmd window. Or maybe there are other options? I had already thought of doing the whole thing in a single cmd window, but unfortunately I can't do it either because the autosave program only starts when the Minecraft server command has been executed, i.e. When the server is off again. I hope you have understood me so far and if not you can also ask me something, I'm happy about every answer.

Gu

I would go away from the batch files and write a plugin. How does the "Auto-Save" work and what does it do?

Du

Plugin? I've never dealt with that but good. So the Auto-Save is basically just a batch file that is started when you start the server. She simply starts a timer and after 5 minutes she copies the folder with the Minecraft world into another folder. Then the timer is reset to 5 minutes and so on…

Gu

Oh, that's what you mean by auto-save. Which, in my opinion, is relatively meaningless, since there's an auto-save internally in the server that works reliably. But I think it is difficult to address another batch file

Du

An integrated auto-save? Really? Where can you activate it? I've never heard of it. That would of course be the best and easiest way.

Gu

It just doesn't swap out the file like you.

https://minecraft-de.gamepedia.com/...l/save-all

Du

Aha that's very good. But then how do I load the fuse? And can you automate it somehow?

Gu

This only saves the current status. This is not an extra backup. What is this backup for? This is actually completely unnecessary, since the files are never damaged so much that they are unusable.

Po

Just install a backup plugin.

Du
1

I only mean if something happens accidentally that you don't want. Then how can you load the backup from before?

Gu
-1

That doesn't go as far as I know. But "if something happens by accident that you don't want" then you were unlucky. So you can of course make the whole thing so blatant with plugins that you load in-game fuses with a command. But I doubt that can be extremely important.

Du

Can you recommend some and how do you install them?

Du

Well I'll try plugins.

Po

What version is the server running on?

Du

1.16.1 or 1.16 I'm not quite sure right now.

Po

Take https://www.spigotmc.org/...rer.48853/.

Just drag it into the plugins folder. After starting the server, a new folder is created in the plugins folder.

In config.yml you now have to make some settings. There's also an

Du

Okay thanks, I'll try it out soon.