Advertisement
  1. 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!

  1. Gamecrafter
    For PocketMine-MP:
    Alpha 1.4 API 1.10.0
    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.

    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
    
    WARNING: For advanced users only.
    Find the following lines:
    Code:
    set POCKETMINE_FILE=PocketMine-MP.phar
    set POCKETMINE_FILE=src\pocketmine\Pocketmine.php
    
    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.
    - For Linux OS, Mac OS, or any other OS:
    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

Recent Reviews

  1. KenyGamer
    KenyGamer
    4/5,
    Version: v1.2.0
    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.
    1. Gamecrafter
      Author's Response
      Oh, that's too bad. However, it isn't the plugin's fault that you don't host your server on your PC. Also, did you mention FTP? You should be able to upload the new script.
  2. kingcosmo
    kingcosmo
    5/5,
    Version: v1.2.0
    This is not a bad plugin for the most part, I'm glad some one can make a good plugin as that :)
    1. Gamecrafter
      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. :)
  3. Andy_Craft1932
    Andy_Craft1932
    5/5,
    Version: v1.2.0
    Just curious if this plugin will be updated to the current api.
    1. Gamecrafter
      Author's Response
      I haven't been active here for awhile, I'll need some time to catch up. Thanks for the reminder! :)
  4. vcraftPE
    vcraftPE
    5/5,
    Version: v1.2.0
    When the server restarting its wasent go online again | please fix it :)
    1. Gamecrafter
      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. ;)
  5. EschieEsh
    EschieEsh
    5/5,
    Version: v1.2.0
    Awesome plugin. Is there a way to automatically close the previous windows of PM instead of manually closing them?
    1. Gamecrafter
      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. :)
  6. TheGalaxyGamer
    TheGalaxyGamer
    5/5,
    Version: v1.2.0
    Amazing Plugin! Is there a way to customize the time to restart?
    1. Gamecrafter
      Author's Response
      There is already an option for that. It can be configured in the config file.
  7. AvivShopenCraft
    AvivShopenCraft
    5/5,
    Version: v1.1.0
    AWSOME AWSOME AWSOME!!!! I don't know what I will do without this plugin... cuz ASR is bad.. AWSOME!:D
    1. Gamecrafter
      Author's Response
      Thanks for the review! :P
  8. TheGalaxyGamer
    TheGalaxyGamer
    5/5,
    Version: v1.1.0
    Great Plugin but Idk how to set it up
    1. Gamecrafter
      Author's Response
  9. Nawaf_Craft1b
    Nawaf_Craft1b
    5/5,
    Version: v1.1.0
    Great Plugin
    1. Gamecrafter
  10. iDirtPlayzMC
    iDirtPlayzMC
    5/5,
    Version: v1.1.0
    Maybe make tutorials ?
    1. Gamecrafter
      Author's Response
      Yeah, I NEED to make one. But I don't have that much time. Can you help me? :P
Advertisement