Minehut / Meta

Report bugs or issues and request features and updates for Minehut
31 stars 21 forks source link

Scheduled Tasks #402

Open CoolProgrammerX opened 3 years ago

CoolProgrammerX commented 3 years ago

Feature request

Checklist

Platform

Website

Describe the feature

Having a separate Tab called Scheduler, where we can make scheduled tasks for the server to run at times with cron. This can either be a command to be executed on the server, or a payload such as, restart, stop, hibernate, start to schedule auto-restarts.

How the feature is useful

Many servers are up for long times, and then they crash. Things rollback, and everything is messed up. Auto-restart schedulers can be useful for servers to prevent data loss. Also automated announcements, entity clear, and such stuff can be done without Skript for people who don't know how to code.


Use πŸ‘ and πŸ‘Ž reactions to indicate you agree or disagree with this suggestion! Feel free to discuss the idea in the comments.

CoolProgrammerX commented 3 years ago

1 problem striked though my mind randomly: If players schedule a task to restart server every 4 minutes, the server will keep rebooting and online 24/7 even if there are 0 players. Fix: You can probably set a minimum time for server reboot, e.g. Payload "restart" should have server online for minimum 4 hours. Same with start.

Sorry bad English, not a native English speaker.

not-3than commented 3 years ago

1 problem striked though my mind randomly: If players schedule a task to restart server every 4 minutes, the server will keep rebooting and online 24/7 even if there are 0 players. Fix: You can probably set a minimum time for server reboot, e.g. Payload "restart" should have server online for minimum 4 hours. Same with start.

Sorry bad English, not a native English speaker.

They could easily disable scheduling restarts for less than an hour or so. Like you can schedule a restart for every 12 hours, and if they tried to schedule it for less than an hour then it wouldn't allow them. It's a feature that other server hosts have and I think it's a really nice idea.