2024-12-12 09:30:49|Myriagame |source:minecraft skins
Overview
This MOD can restart your server regularly every day. At present, it can only be restarted once a day.The reason for this mod is Auto Shutdown is that what this module does is to turn off the server and restart it to the startup script.
Of course, the function of this mod is not only that simple. This MOD also adds the function of players to vote for restart. If it exceeds the support of a certain number of players, restart will be triggered.
Due to the suggestion of a certain meow J, the MOD currently adds a WatchDog to support two new features: it will automatically restart automatically after the server fakes (Stall or HUNG) or TPS is too low for a certain period of time.Therefore, even if you don't want to restart automatically, you can install this MOD to solve the problem that the server cannot be restarted automatically.
At present, the MOD supports Minecraft 1.12.2, and the forge version is at least 12.18.5.2959, which must be installed on the client and server at the same time.
instruction
Instruction description: This MOD adds a new instruction /shutdown for voting to restart.First, a player needs to run /shutdown to initiate a vote.After all, all players must vote using /shutdown yes or /shutdown no.
After all players vote, if there are more than a certain number of people who vote, they will not restart, and they will restart if they do not exceed the number.
Install
You need to modify your server startup script after installation:
Under Windows (Shell):
@Echo OFF
: Start [Original startup parameter] GOTO Start
Under linux (bash):
#!/Bin/bash
While True Do [Original startup parameter] Done
If you want to exit under Windows, press Ctrl+C. If you use tmux under linux, please Ctrl+C. After using the Screen directly Ctrl+A, enter: Quit.
Configuration
Setting file introduction:
Messages {
# Prompt for the player kick before restarting
S: kick = SCHeduled Server Shutdown
# Restart the warning information before.%m represents the remaining minutes
S: Warn = Server is Shutting down in %M Minute (s).
}
schedule {
# If it is true, the server will restart regularly
B: enabled = true
# Restart hour (example: 8 represents 8 am) [range: 0 ~ 23]
I: HOUR = 6
# Restart minute (example: 30 represents 30 points) [range: 0 ~ 59]
I: Minute = 0
}
voting {
# Cancel the restarted No voting duty (exceeding the vote vote will fail) [range: 1 ~ 999]
I: maxnovotes = 1
# Number of online players needed to initiate voting [range: 1 ~ 999]
I: minvoters = 2
# If set to True, turn on the voting restart function
B: Voteenabled = TRUE
# Restarting the shortest interval of a vote (minute) [Range: 0 ~ 1440]
I: Voteinterval = 15
}
Watchdog {
# If it is set to True, MOD will try to save world information and data before the server is forced to close.Note: Set as FALSE may turn off the server faster, but the chance of world damage will be higher. B: Attemptsoftkill = TRUE
# If it is set to true, the MOD will try to turn off the server without responding or fake death.
B: enabled = true
# (Ie, fake death) interval time (second) [range: 1 ~ 3600]
I: Interval = 10
# TPS will be considered "very low" below this value [range: 0 ~ 19]
I: Lowtpsthreshold = 10
# How many seconds will continue to restart automatically when TPS "very low" [range: 1 ~ 3600]
I: Lowtpstimeout = 30
# The server will be closed after how many seconds the server responds (if Sampler is installed, please set it to 35 seconds) [range: 1 ~ 3600]
I: timeout = 40
}
This MOD is completely open source. If you want to refer to code or submit suggestions/feedback bugs, please: https://gitlab.com/targren/ForgeAutoshutdown.
National Service DNF Dark Ni
2025-01-28 09:19:27The new screenshot of the be
2025-01-28 09:18:57The 15th anniversary wallpap
2025-01-28 09:18:273DM Xuanyuan Sinicization Gr
2025-01-28 09:17:57French magazine is the first
2025-01-28 09:17:27The sneak game "Republic" wi
2025-01-28 09:16:57The story between humans and
2025-01-28 09:16:27Capture "Trinity 3: Artifact
2025-01-28 09:15:27Wind direction change "Myste
2025-01-28 09:14:57DICE's new project "Dream" w
2025-01-28 09:14:27Pirate Minecraft Skins
Minecraft Skins
2024-12-10 04:11:27Pirate Minecraft Skins
Minecraft Skins
2024-12-10 04:11:26Master Minecraft Skins
Minecraft Skins
2024-12-10 04:11:25King Minecraft Skins
Minecraft Skins
2024-12-10 04:11:25Guide Minecraft Skins
Minecraft Skins
2024-12-10 04:11:24Dark Knight Minecraft Skins
Minecraft Skins
2024-12-10 04:11:23Sparta Minecraft Skins
Minecraft Skins
2024-12-10 04:11:23Moncraft Skins of the War
Minecraft Skins
2024-12-10 04:11:22Red Witch Minecraft Skins
Minecraft Skins
2024-12-10 04:11:22Golden Cavaliers Minecraft S
Minecraft Skins
2024-12-10 04:11:22