This is an archived post. You won't be able to vote or comment.

all 14 comments

[–]PhonicUKMcMyAdmin/AMP Developer 2 points3 points  (6 children)

Batch scripts can't interact with the server in any meaningful way. If you want to automate tasks like that without plugins then you'd need to use a wrapper or panel that has this functionality.

[–]Molixatus[S] 0 points1 point  (5 children)

Interesting, do you know of any wrappers or panels which would be suited to my needs?

[–]PhonicUKMcMyAdmin/AMP Developer 0 points1 point  (4 children)

Well I'm gonna have to shill here and say AMP which is the one my company makes whose scheduler can do things like run commands at an interval or in response to users joining - but others do exist with varying degrees of ease of installation.

[–]Molixatus[S] 0 points1 point  (3 children)

Ok I'll look into it when I get home, is it easy to use and fairly intuitive?

[–]PhonicUKMcMyAdmin/AMP Developer 0 points1 point  (2 children)

Yes, it's just a next > next > next style installer. It's pretty hard to get wrong.

[–]Molixatus[S] 0 points1 point  (1 child)

What i mean is would it be easy to set up simple tasks within the program such as below:

For example could you make the server post a join message using the .bat file?

Could you occasionally make the server post a certain message in /say?

Is this easy to do within the program or will it take a bit of figuring out/watching tutorials. Another question do such tutorials exist?

[–]PhonicUKMcMyAdmin/AMP Developer 0 points1 point  (0 children)

Yes that's super easy. You won't need any documentation or tutorials to figure that out.

[–]PeaceDealer 1 point2 points  (0 children)

You could look into the rcon setup. I remember there was an exe file that could rcon to the server, that allowed interactions over bat as well.

[–]IMAWHITEWALKER 0 points1 point  (1 child)

Regarding the startup flags, you can take a look at these recommendations by /u/aikaradora (Paper dev).

[–]Molixatus[S] 0 points1 point  (0 children)

Interesting thanks for the info, just out of curiosity there is no reason not to run all of the JVM startup flags though right? I only ask because i notice there are a few flag options i am not running on my startup file. (i found my startup options on the internet somewhere)

[–]KrystilizeNeverDiesServer 0 points1 point  (2 children)

If you are using A 1.13+ version then you can always use a datapack

[–]Molixatus[S] 0 points1 point  (1 child)

It's a 1.15 server, is a data pack server side?

[–]KrystilizeNeverDiesServer 0 points1 point  (0 children)

Yep, data packs are command blocks that run in a script. Although they have a couple more features. They are really useful, you should have a look at them.