NOTICE: This plugin is NOT affiliated with ASR by iJoshuaHD in ANY way. I am not iJoshuaHD, and RestartMe is not ASR. Please keep this in mind when using this plugin. Also, this plugin contains built-in scripts. They are only run when your start script is modified so that automatic restarts can take place.
- For PocketMine-MP:
- Alpha 1.4 API 1.10.0
About:
RestartMe is a plugin that allows your server to be automatically restarted at set intervals. It also allows automatic restarting of your server if memory usage is overloaded(peak usage can be configured in config.yml). There are also configurable messages that you can change in config.yml. Besides those, you can choose to start/stop the timer, so you don't have to worry about the server restarting in the middle of something important.
Commands:
Main command: restartme, rm
- add: Adds n seconds to the timer
- help: Shows all RestartMe commands
- memory: Shows memory usage information
- set: Sets the timer to n seconds
- start: Starts the timer
- stop: Stops the timer
- subtract: Subtracts n seconds from the timer
- time: Gets the remaining time until the server restarts
Permissions:
- restartme.command.restartme: op
Usage:
- For Windows OS:
Use only one of the following, for minimum conflicts:
Change the contents of your start script(by default it's start.cmd) and copy and paste the following into it(make sure you delete all of the old code first):
Code:@echo off cd /d %~dp0 netstat -o -n -a | findstr 0.0.0.0:19132 > NUL if %ERRORLEVEL% equ 0 ( goto :loop ) else ( goto :StartPM ) :loop ping 127.0.0.1 -n 5 > NUL netstat -o -n -a | findstr 0.0:19132 > NUL if %ERRORLEVEL% equ 0 ( goto :loop ) else ( PING 127.0.0.1 -n 5 > NUL goto :StartPM ) :StartPM if exist bin\php\php.exe ( set PHP_BINARY=bin\php\php.exe ) else ( set PHP_BINARY=php ) if exist PocketMine-MP.phar ( set POCKETMINE_FILE=PocketMine-MP.phar ) else ( if exist src\pocketmine\PocketMine.php ( set POCKETMINE_FILE=src\pocketmine\PocketMine.php ) else ( echo "Couldn't find a valid PocketMine-MP installation" pause exit 1 ) ) if exist bin\php\php_wxwidgets.dll ( %PHP_BINARY% %POCKETMINE_FILE% --enable-gui %* ) else ( if exist bin\mintty.exe ( start "" bin\mintty.exe -o Columns=88 -o Rows=32 -o AllowBlinking=0 -o FontQuality=3 -o Font="DejaVu Sans Mono" -o FontHeight=10 -o CursorType=0 -o CursorBlinks=1 -h error -t "PocketMine-MP" -i bin/pocketmine.ico -w max %PHP_BINARY% %POCKETMINE_FILE% --enable-ansi %* ) else ( %PHP_BINARY% -c bin\php %POCKETMINE_FILE% %* ) ) goto :loop- For Linux OS, Mac OS, or any other OS:WARNING: For advanced users only.
Find the following lines:
Once you've located that line, change the value to the filename of the plugin(by default it is RestartMe_v(versionString).phar), or if you are running this plugin from source, change it to plugins\(sourcePluginFolderName)\scripts\php\wrapper.php.Code:set POCKETMINE_FILE=PocketMine-MP.phar set POCKETMINE_FILE=src\pocketmine\Pocketmine.php
Simply open your start script(by default it's start.sh) and set DO_LOOP to "yes".
To-do:
- Add more commands
- Fix any bugs if found
- Plugin Access:
- Commands
- Data Saving
Advertisement
-
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

RestartMe v1.2.0
Make sure your server stays up all the time!
-
jasonwynn10, ender_kenji, HotFireyDeath and 3 others like this.
Recent Reviews
-
KenyGamer
- 4/5,
Great plugin to restart servers. But, cant use it because i didnt host the server in my own pc. I use other hosting and the FTP didnt let me to change the scripts to restart the server.
-
kingcosmo
- 5/5,
This is not a bad plugin for the most part, I'm glad some one can make a good plugin as that :)
-
Author's Response
Yeah, I decided to make it when I got fed up with the only server-restarter plugin at the time. Now there's two on the repository. :)
-
-
Author's Response
I haven't been active here for awhile, I'll need some time to catch up. Thanks for the reminder! :)
-
-
vcraftPE
- 5/5,
When the server restarting its wasent go online again | please fix it :)
-
Author's Response
This issue is not caused by the plugin. You didn't set everything up correctly yet. Please make sure you've utilized a restarter script. Refer to the plugin description for more information on how to do this. ;)
-
EschieEsh
- 5/5,
Awesome plugin. Is there a way to automatically close the previous windows of PM instead of manually closing them?
-
Author's Response
Yes, there is. I'm assuming you're using method #1 right now. Try out method #2, but remember to use a clean script before setting it up for method #2. Check out the plugin description for instructions. If you still need any assistance, feel free to ask in the plugin thread. :)
-
TheGalaxyGamer
- 5/5,
Amazing Plugin! Is there a way to customize the time to restart?
-
Author's Response
There is already an option for that. It can be configured in the config file.
-
AvivShopenCraft
- 5/5,
AWSOME AWSOME AWSOME!!!! I don't know what I will do without this plugin... cuz ASR is bad.. AWSOME!:D
-
Author's Response
Thanks for the review! :P
-
-
Author's Response
This plugin does restart the server, but it does require a setup that would be a bit complicated to some folks around here. I'll work on a tutorial when I have some free time, thanks for the reminder! :D But this will also work: https://forums.pocketmine.net/plugins/automatic-server-restarter.903/field?field=documentation
-
-
-
-
Author's Response
Yeah, I NEED to make one. But I don't have that much time. Can you help me? :P
-
Advertisement