原文介绍
Description
Restart Evolution is a plugin that allows admins to restart and stop their servers.
The server script automatically detects by typing in a command whether it should stop or restart.
If you cant edit the start script, the server will do an restart or stop (defined by your hoster) when you type in /re stop AND /re restart.
This Plugin works only perfectly if you can edit the start script.
But you can also use it without the Script!
Restart/Stop the server with a specified message
Set the warningtimes in the config
Modify every warning at RestartEvolution
Restart/Stop the server immediately
Restart/Stop the server after the given time
show not decimal time without a comma
working also with linux / mac
status on join
Sound when warning
Setting up
You just have to put the RestartEvolution.jar file in your plugins folder and replace your start script with the one at the Scripts page.
Commands and Permissions
Command Permission Description
/re help shows the help of RestartEvolution
/re restart re.restart restarts the server
/re stop re.stop stops the server
/re restart now re.restart.now restarts the server immediately
/re stop now re.stop.now stops the server immediately
/re restart time <minutes> re.restart.time restarts the server with the given time
/re stop time <minutes> re.stop.time stops the server with the given time
/re reload re.reload reloads the plugin and stops the restarting progress
Planned Features
Nothing planned new
@echo off
color 2
title minecraft_server
:MAIN
cls
SET BINDIR=%~dp0
CD /D "%BINDIR%"
java -Xincgc -Xmx768M -jar minecraft_server.jar
if exist "plugins\RestartEvolution\restart.mcs" goto MAIN
if not exist "plugins\RestartEvolution\restart.mcs" goto END
:END
PAUSE
Linux
#!/bin/sh
Start()
{
clear
BINDIR=$(dirname "$(readlink -fn "$0")")
cd "$BINDIR"
java -Xincgc -Xmx768M -jar minecraft_server.jar
IF
}
End()
{
echo ""
read -p " click enter to stop the server . . ." nothing
exit
}
IF()
{
if test -e "plugins/RestartEvolution/restart.mcs";
then
Start
else
End
fi
}
Start
Mac
#!/bin/bash
Start()
{
clear
cd "$( dirname "$0" )"
java -Xmx768M -jar minecraft_server.jar
IF
}
End()
{
echo ""
exit
}
IF()
{
if test -e "plugins/RestartEvolution/restart.mcs";
then
Start
else
End
fi
}