AutoRestart 3.3.3

The best AutoRestart plugin in the market!

  1. ServersMC
    Tested Minecraft Versions:
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    Source Code:
    https://gitlab.com/dennislysenko/AutoRestart-v3
    Contributors:
    ServersMC, DennisLysenko
    [​IMG]
    Restart your server automatically today, and clear some of your RAM for a faster, smoother Minecraft experience. This integration is seamless and works with Spigot. Please follow the instructions to ensure a proper setup.
    [​IMG]
    I would like to thank Numero Uno, for doing this showroom for me. I went on YouTube, and was curious did anyone make a video for this plugin, since my old was private and I found this video! Please subscribe to Numero Uno, I appreciate what he did. Like the video, watch it, and everything. Thank you to all.[​IMG]
    First, place AutoRestart into your plugins folder, and load the server. Once the server says "Done!," then close the server. Move the start file from the AutoRestart folder into the same folder as your spigot jar file, and edit the file to match your jar file and java parameters.

    NOTE:
    If you are running a MultiCraft server, your server provider should already have the restart command setup.
    Next, go into your spigot.yml file and change the restart-script node to
    Code (Text):
    ## WINDOWS
    restart-script: start.bat

    ## LINUX / BASH
    restart-script: ./start.sh
    Start the server and test if the restart script works by typing "/restart," if this previously already works then no need to touch this.

    Once complete, that's pretty much it! Enjoy.
    [​IMG]
    Code (Text):
    * Restarts on hour interval, able to use decimals on config!
    * Restarts at a specific timestamp!
    * Broadcasts reminders, customizable in minutes on config!
    * Broadcasts final reminders on last 5 seconds!
    * Editable reminder messages!
    * Editable shut down messages!
    * Editable seconds messages!
    * Option to enable/disable on screen pop ups, on different events!
    * Change restart time in-game.
    * Integrated update check.
    * MultiCraft support!
    * Force saves world when restarts!
    * Able to Start, or Pause the server timer in-game!
    * Reminds you every ten minute that timer is paused! (Customizable)
    * Automatically updates your old configuration file!
    * Customizable popup messages!
    * Customizable popup timings!
    * Add color codes to shutdown messages!
    * Execute commands before the server restarts on an X amount of seconds.
    * Configurable to enable, and disable commands on last seconds, and
      change the amount of seconds before done so.

    -- vvv THIS HAS BEEN DISABLED vvv --
    * Added Max Players Exception.
    EXAMPLE:
      If the server restarts and you have 10 players online
      and you set the max players to 10
      your server wont restart until someone leaves
      and the player amount is less than 10.
    * Configurable Max Players Exception!
    CONFIGURATIONS:
      * Change restart delay.
      * Change amount of max players.
      * Enable/Disable feature.
      * Set exception message when too many players online.
      * Set message before delayed restart when the amount of players have been met.
      * Shutdown message for Max Players Exception!
    -- ^^^ THIS HAS BEEN DISABLED ^^^ --
     
    Photos of version 2.8.1!
    [​IMG] [​IMG]
    [​IMG]
    Code (Text):
    /autore help    Shows help screen
    /autore time    Shows exactly when is the next server restart
    /autore now     Restarts the server now!
    /autore reload  Reloads the config file (This will reset the timer!)
    /autore in      Sets the time the server will restart in.
    /autore pause   Pauses the server AutoRestart timer.
    /autore start   Starts the server AutoRestart timer.
    [​IMG]
    Code (Text):
    /autore now     autorestart.now
    /autore reload  autorestart.reload
    /autore in      autorestart.in
    /autore pause   autorestart.pause
    /autore start   autorestart.start
    [​IMG]
    Code (Text):
    ## This section will allow you to execute commands before the server restarts
    commands:
        ## Enable or disable this feature
        enabled: false
        ## The seconds before restart to execute list
        seconds: 5
        ## the amount of seconds before restart to execute commands
        list:
            - 'say This is a test command'
            - 'say I think it works?'
    ## DO NOT TOUCH!!
    version: 1
    Code (Text):
    ## Global Broadcast and Private Messages adds flexibility on what you want your players to see!
    ## You have the option of having the player who executed the event to see a message while other dont, or
    ## have the player who executed the event see a global message but not a private message, or both!
    ## you can have the server see a global message while the player who executed the command will see
    ## his own message.

    ## The reason why you can enable or disable broadcasts and popups, is to give you the flexibility to
    ## choose whether you want your players to see a broadcast or a popup of the event. Or both! If you have
    ## both popups and broadcasts disabled, broadcasts are automaticlly enabled. If broadcasts, private messages,
    ## and popups are all disabled, then it will aswell be automaticlly enabled in broadcasts. If broadcasts and
    ## private messages are disabled, but popups are enabled, console will get a private message for logs. Since
    ## command line cant recieve popups.
     
    ## These are global broadcasts the everyone sees. If the same task is enabled in "private_message"
    ##  the player who initiated the event will not see the broadcast, but will see his own broadcast.
    ##  Global broadcasts include the prefix in "main.prefix" config.
    global_broadcast:
        ## Enable or Disable the broadcast
        enabled:
            ## Show the broadcast on the minute reminders!
            minutes: true
            ## Show the broadcast on the last seconds of a server restart!
            seconds: true
            ## Show the broadcast when typed /autore start or /autore pause
            ## [Duplicated in Private_Messages]
            status:
                start: true
                pause: true
            ## Show the broadcast when the server time has been changed!
            ## [Duplicated in Private_Messages]
            change: true
            ## Show the Maxplayers broadcast
            max_players:
                ## The message broadcasted when too many players are online on restart!
                alert: true
                ## This message appears when the amount of players requirement is met!
                pre_shutdown: true
            ## Global shutdown message
            shutdown: true
        ## The configuration for broadcast messages
        ## Messages have multi line support!
        messages:
            ## %m - minutes
            minutes:
                - 'Server Will Restart In %m Minutes!'
            ## %s - seconds
            seconds:
                - 'Server is restarting in %s Seconds!'
            ## There are no tags for this section.
            ## [Duplicated in Private_Messages]
            status:
                start:
                    - '&cAutoRestart timer has started!'
                pause:
                    - '&cAutoRestart timer has been paused'
            ## %h - hours, %m - minutes, %s - seconds.
            ## [Duplicated in Private_Messages]
            change:
                - '&cServer now is restarting in &f%h&cH &f%m&cM &f%s&cS!'
            ## Maxplayers broadcast settings
            max_players:
                ## The message broadcasted when too many players are online on restart!
                ## %a - amount
                alert:
                    - '&bToo many players online for restart. Max &f%a&b amount of players allowed for a restart. Waiting for people to leave!'
                ## This message appears when the amount of players requirement is met!
                ## %d - delay
                pre_shutdown:
                    - '&aServer now restarting in &f%d&a seconds!'
            ## Client restart message in game chat
            shutdown:
                - '&cServer Restarting!'
    ## DO NOT TOUCH!!
    version: 1
    Code (Text):
    ## To understand ticks. 1 second is relevent to 20 ticks! So a second and a half (1.5s) is 30 ticks!
    ## Fadein, stay, fadeout are the 3 arguments. You can edit how long it takes to fadein, fadeout etc.
    ## You can also put the fade numbers to 0, and then the popup's will be instant!
    ## Get creative!
    ## Global Popups duplicate rules are applied just like global Messages, same situation with private popups
    ## and private messages.
    global_popups:
        ## Enable or Disable the Popups!
        enabled:
            ## Show the pop ups on the minute reminders!
            minutes: true
            ## Show the pop ups on the last seconds of a server restart!
            seconds: true
            ## Show the pop ups when type /autore time
            ## [Duplicated in Global_Messages]
            status:
                start: true
                pause: true
            ## Show the pop ups when the server time has been changed!
            ## [Duplicated in Global_Messages]
            change: true
            ## Show the Maxplayers pop ups
            max_players:
                ## The pop up broadcasts when too many players are online on restart!
                alert: true
                ## This pop up appears when the amount of players requirement is met!
                pre_shutdown: true
            ## Shows the popup before restart
            shutdown: true
        ## This section is for the customization of the popup messages!
        messages:
            minutes: ## %m - minutes
                title:
                    text: '&cServer Restarting In'
                    fadein: 20
                    stay: 40
                    fadeout: 20
                subtitle:
                    text: '&f%m &cMinutes!'
                    fadein: 20
                    stay: 40
                    fadeout: 20
            seconds: ## %s - seconds
                title:
                    text: '&cServer Restarting In'
                    fadein: 5
                    stay: 20
                    fadeout: 5
                subtitle:
                    text: '&f%s &cSeconds!'
                    fadein: 5
                    stay: 10
                    fadeout: 5
            status: ## There are no tags for this section
                start:
                    title:
                        text: '&cAutoRestart has started!'
                        fadein: 20
                        stay: 40
                        fadeout: 20
                    subtitle:
                        text: ''
                        fadein: 20
                        stay: 40
                        fadeout: 20
                pause:
                    title:
                        text: '&cAutoRestart has been paused!'
                        fadein: 20
                        stay: 40
                        fadeout: 20
                    subtitle:
                        text: ''
                        fadein: 20
                        stay: 40
                        fadeout: 20
            change: ## %h - hours, %m - minutes, %s - seconds
                title:
                    text: '&cServer Restarting In'
                    fadein: 20
                    stay: 40
                    fadeout: 20
                subtitle:
                    text: '&f%h&cH &f%m&cM &f%s&cS!'
                    fadein: 20
                    stay: 40
                    fadeout: 20
            max_players:
                alert: ## %a - amount
                    title:
                        text: '&bToo many players online for restart.'
                        fadein: 20
                        stay: 40
                        fadeout: 20
                    subtitle:
                        text: 'Max &f%a&b amount of players allowed for a restart.'
                        fadein: 20
                        stay: 40
                        fadeout: 20
                pre_shutdown: ## %d - delay
                    title:
                        text: '&aServer now restarting in &f%d&a seconds!'
                        fadein: 20
                        stay: 40
                        fadeout: 20
                    subtitle:
                        text: ''
                        fadein: 20
                        stay: 40
                        fadeout: 20
            shutdown:
                title:
                    text: '&cServer is now'
                    fadein: 20
                    stay: 80
                    fadeout: 20
                subtitle:
                    text: '&cRestarting!'
                    fadein: 20
                    stay: 80
                    fadeout: 20
    ## DO NOT TOUCH!!
    version: 1
    Code (Text):
    ## Main configuration values
    main:
        ## restart modes availiable 'interval', and 'timestamp'
        restart_mode: 'interval'
        ## restart mode specific settings
        modes:
            ## Interval in Hours (DECIMALS ALLOWED)
            interval: 3.0
            ## Set the timestamp in 24 hour time format HH:MM
            ## Multiple timestamps allowed
            timestamp:
                - '0:00'
                - '6:00'
                - '12:00'
                - '18:00'
        ## Server wide prefix for all chat broadcasts
        prefix: '&f[&7AutoRestart&f] &e'
        ## Client restart message in game chat
        kick_message: '&cServer Restarting! We will be back up any minute!'
    ## DO NOT TOUCH!!
    version: 3
    Code (Text):
    ## THIS FILE IS DIABLED TILL FURTHER NOTICE

    ## This will stop your server from shutting down if you have more than X amount of players configured in "amount".
    max_players:
        ## Enable or Disable this feature
        enabled: false
        ## The max amount of players allow for a restart. If you set this to 10, and your server has 11 people online
        ## your server will not shutdown until there is LESS THAN 10 players.
        amount: 10
        ## The delay for the server to restart once player count as been met. In seconds!
        delay: 10
    ## DO NOT TOUCH!!
    version: 2
    Code (Text):
    ## These are private messages sent to the player when the event is triggered. If the same task is enabled in
    ##  "global_broadcast", this player will not see the global message, but his own.
    ##  Private messages do not include the prefix in "main.prefix" config.
    private_messages:
        ## Enable or Disable the chat message
        enabled:
            ## Show the message when type /autore time
            time: true
            ## Show the message when typed /autore start or /autore pause
            ## [Duplicated in Global_Messages]
            status:
                start: true
                pause: true
            ## Show the broadcast when the server time has been changed!
            ## [Duplicated in Global_Messages]
            change: true
            ## "/autore pause" reminder
            pause_reminder: true
        ## Messages have multi line support!
        messages:
            ## %h - hours, %m - minutes, %s - seconds
            time:
                - '&cServer restarting in &f%h&cH &f%m&cM &f%s&cS!'
            ## There are no tags for this section. [Duplicated in Global_Messages]
            status:
                start:
                    - '&cYou have started AutoRestart timer!'
                pause:
                    - '&cYou have paused AutoRestart timer'
            ## %h - hours, %m - minutes, %s - seconds [Duplicated in Global_Messages]
            change:
                - '&cServer now is restarting in &f%h&cH &f%m&cM &f%s&cS!'
            ## "/autore pause" reminder
            pause_reminder:
                - '&cDont forget that the server countdown is still paused!'
    ## DO NOT TOUCH!!
    version: 1
    Code (Text):
    ## Private popups
    private_popups:
        ## Enable or Disable the Popups!
        enabled:
            ## Show the pop ups when type /autore time
            time: true
            ## Show the pop ups when typed /autore start or /autore pause
            ## [Duplicated in Global_Messages]
            status:
                start: true
                pause: true
            ## Show the pop ups when the server time has been changed!
            ## [Duplicated in Global_Messages]
            change: true
            ## "/autore pause" reminder
            pause_reminder: true
        ## This section is for the customization of the popup messages!
        messages:
            time: ## %h - hours, %m - minutes, %s - seconds
                title:
                    text: '&cServer Restarting In'
                    fadein: 20
                    stay: 40
                    fadeout: 20
                subtitle:
                    text: '&f%h&cH &f%m&cM &f%s&cS!'
                    fadein: 20
                    stay: 40
                    fadeout: 20
            status: ## There are no tags for this section
                start:
                    title:
                        text: '&cYou started AutoRestart back up!'
                        fadein: 20
                        stay: 40
                        fadeout: 20
                    subtitle:
                        text: ''
                        fadein: 20
                        stay: 40
                        fadeout: 20
                pause:
                    title:
                        text: '&cYou have paused AutoRestart!'
                        fadein: 20
                        stay: 40
                        fadeout: 20
                    subtitle:
                        text: ''
                        fadein: 20
                        stay: 40
                        fadeout: 20
            change: ## %h - hours, %m - minutes, %s - seconds
                title:
                    text: '&cYou Changed Restart Time to'
                    fadein: 20
                    stay: 40
                    fadeout: 20
                subtitle:
                    text: '&f%h&cH &f%m&cM &f%s&cS!'
                    fadein: 20
                    stay: 40
                    fadeout: 20
            pause_reminder: ## There are no tags for this section
                title:
                    text: '&cDont forget that'
                    fadein: 20
                    stay: 40
                    fadeout: 20
                subtitle:
                    text: '&cAutoRestart timer is still paused!'
                    fadein: 20
                    stay: 40
                    fadeout: 20
    ## DO NOT TOUCH!!
    version: 1
    Code (Text):
    ## Reminders will popup in the specified times to let players know when is the next restart
    reminder:
        ## Enables or Disables restart reminder
        enabled:
            minutes: true
            seconds: true
        ## minutes before restart
        minutes:
            - 15
            - 10
            - 5
            - 1
        ## AutoRestart will countdown the seconds to restart starting at the entered value
        seconds: 5
        ## This will remind you that the server timer is paused! This message will be sent to
        ## people with autorestart.start permission!
        ## This is set in minutes!
        pause_reminder: 10
    ## DO NOT TOUCH!!
    version: 1
    [​IMG]
    Code (Text):
    * Add more features (Need more reviews for ideas!)
    * Make it where the server restarts on crash!
    * Play a sound when an alert pops up.
    * Add BungeeCord support
    [​IMG]
    Waiting on bStats

Recent Reviews

  1. Sl4y3r2738
    Sl4y3r2738
    5/5,
    Version: 3.3.3
    Easy install. Popped it right in, changed the script in spigot.yml and it works easy. Thank you!
  2. Lethal888
    Lethal888
    5/5,
    Version: 3.3.3
    Very helpful plugin! Thanks!
    ------------------------------------------------------------
  3. iTzGamer_05
    iTzGamer_05
    4/5,
    Version: 3.3.3
    Works so far, but the MaxPlayers dont work. I put it on 1 player, so the server should restart only if the server is empty but it restarts also with 2 players
  4. LimunimyMC
    LimunimyMC
    1/5,
    Version: 3.3.3
    My server got suspended on freemcserver.net

    Suspension Reason:
    Usage of forbidden plugin (AutoRestart-v3.jar) Auto Restart Plugin [NM]
  5. CrisTVH
    CrisTVH
    4/5,
    Version: 3.3.3
    Error occurred while enabling AutoRestart v3.3.3 (Is it up to date?)
    I would like to know how to solve this
  6. ziemniok99
    ziemniok99
    5/5,
    Version: 3.3.3
    Awesome Plugin and really useful. I never found this good Plugin for restarting server
  7. passwords
    passwords
    4/5,
    Version: 3.3.3
    working, but I don't understand why timings (auto restart) are so high. Is there a way to refine it?
  8. SimonGhoul
    SimonGhoul
    5/5,
    Version: 3.3.3
    This is a great plugin and it works perfectly

    I only wish that it closed the cmd windows automatically, since it's always left on "press key to continue" (but servers are closed properly and perfectly though. I just need these windows to close because I have some scripts to close the server and shutdown/restart my computer). Really wondering what V4 will be like
  9. lepel
    lepel
    5/5,
    Version: 3.3.3
    It's mostly working fine, but the bootloader crashes a lot when using various commands. My server provider restarts the server once a day anyway, but I like to restart it every 6 hours.

    Just now I ran "/ontime <user>" and the bootloader crashed. It happens randomly tho, I can normally use /ontime just fine without it crashing. It often crashes when reloading essentials too, and some other commands that I can't remember.

    This is the error when it just happened with /ontime:

    Error during server start:
    java.io.IOException: Stream closed
    at java.lang.ProcessBuilder$NullOutputStream.write(ProcessBuilder.java:433)
    at java.io.OutputStream.write(OutputStream.java:116)
    at me.dennis.autore_bootloader.core.BootLoader.startServer(BootLoader.java:86)
    at me.dennis.autore_bootloader.core.BootLoader.main(BootLoader.java:27)
    End of error.
    BOOTLOADER: Server has been stopped. Checking for restart request...
    BOOTLOADER: No restart request found. Closing BootLoader!
  10. EnderBoy20063
    EnderBoy20063
    5/5,
    Version: 3.3.3
    it dont restart my server please help man i dont know wgat to do please help anyone
    1. ServersMC
      Author's Response
      Make sure you setup your bukkit/spigot.yml config properly. Find the setting where it states the restart-script.