mark2devel / mark2

Minecraft Multi Server Wrapper Written in Python with Twisted; Pull Requests HIGHLY Encouraged, Collaborators Needed Discord: https://discord.gg/zymJygHNpv
Other
208 stars 44 forks source link

Scheduler event based on server uptime #34

Closed Slind14 closed 9 years ago

Slind14 commented 9 years ago

Hey, is there a feature build in which allows me to execute commands/events/scripts based on a servers uptime. So to say let it restart after it has been up for 6 hours instead of at 0, 6, 12, 18, 24 o'clock? The server does restart on its own every few minutes causing that the scheduler is restarting it after only a few minutes of uptime.

gsand commented 9 years ago

You can do something similar with your scripts.txt file, just add:

@ServerStarted ~restart 6h

As for the other things, something might be up with your current scripts.txt file or crash detection, etc.

Slind14 commented 9 years ago

In case of a restart yes. Related to this commit which cancels them on restart. https://github.com/MineYourMind/mark2/commit/a94736a87cfe1bcf54991c4b14751ed75932cf6c

gsand commented 9 years ago

Upon re-reading your initial comment, the server shouldn't restart on its own every few minutes.