AutoRestart 3.3.1

The best AutoRestart plugin in the market!

  1. ServersMC
    Tested Minecraft Versions:
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    Source Code:
    https://gitlab.com/dennislysenko/AutoRestart-v3
    Contributors:
    ServersMC, DennisLysenko
    [​IMG]
    GLOBAL MESSAGE
    Please join this poll for me to gather information about my next plugin! It's only one question can last up to one minute!
    CLICK HERE

    Restart your server automatically today, and clear some of your RAM for a faster, smoother Minecraft experience. For this to be accomplished you need to start your server using the AutoRestart-BootLoader.jar. This will wrap the server into a bootloader and restart or stop the server as needed. Using this bootloader will have the AutoRestart plugin working as it should.
    [​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 AutoRestart folder in your plugins folder is created, close the server once "Done" is shown. Next, copy AutoRestart-BootLoader.jar, and start_bootloader.bat/start_bootloader.sh to the servers root folder (Same folder as your Spigot.jar file). Depending on your Operating System, AutoRestart will choose which start script to give you.

    VERY IMPORTANT STEP
    After you have copied the files to your root folder, start BootLoader using the start_bootloader file and wait for it to close. If the server loaded, wait for it to finish, and close it using /stop. DO NOT FORCE CLOSE THE BOOTLOADER; YOUR SERVER WILL CONTINUE TO RUN (THIS WILL CAUSE YOU TO MANUALLY CLOSE THE SERVER VIA TASK MANAGER). Once BootLoader has exited, a new file called JAR_CODE will be created. Edit it with notepad or equivalent, and change the line to the same line you initially used to start your server before the BootLoader.

    Finally, use the BootLoader as your primary method of running the server. The reason why the BootLoader is required is that the BootLoader wraps your server in another console. AutoRestart-v3 communicates with the BootLoader to tell it what to do on the next server shutdown. If you use the /stop command, the server will shut down as usual, and AutoRestart will never ask for a restart; however, if AutoRestart causes a shutdown (reboot), it will shut down the server like usual and tell BootLoader to start the server again once it turns off. Tada!

    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!
    * Uses a standalone custom bootloader to restart/stop the server.
    * 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.
    * 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!
     
    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):
    ## 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
            timestamp: '6: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!'

    ## 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

    ## 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!'

    ## 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!'

    ## 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
    ## 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

    ## 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?'

    ## 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 EDIT VERSION NUMBER!
    version: 0
    [​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. Miles_TG
    Miles_TG
    5/5,
    Version: 3.3.0
    Gret plugin, the only issue I am having is that the server will not boot back up. I am using a multicraft server, and I am hoping that you will be able to add support for this in the future!
    1. ServersMC
      Author's Response
      I will, eventually
  2. Airscope
    Airscope
    5/5,
    Version: 3.3.0
    Great job! Easy to use and very helpful. Used on my server because it crashed sometimes.
    1. ServersMC
      Author's Response
      Thank you!
  3. BiggestPotato
    BiggestPotato
    5/5,
    Version: 3.3.0
    Awesome plugin. The only thing is I am using a control panel, on a hosting website. So I need a way to boot it up. Thanks for the awesome plugin again.
    1. ServersMC
      Author's Response
      I'm going to make a better support for hosting companies.
  4. idontknow112
    idontknow112
    5/5,
    Version: 3.3.0
    Great plugin! The only thing I ask for is to add a PlaceholderAPI that shows the time until restart!
    1. ServersMC
      Author's Response
      Thank you for the review! There's other projects im working on. I'll try to find the time.
  5. Aneryan
    Aneryan
    5/5,
    Version: 3.3.0
    keep update sir!.........................................................................................
    1. ServersMC
      Author's Response
      Thank you!
  6. AccioAce
    AccioAce
    5/5,
    Version: 3.3.0
    Great Feature! Keep up the good work and it's really great for many servers. I highly recommend it.
    1. ServersMC
      Author's Response
      Thank you for the review!
  7. razboy20
    razboy20
    4/5,
    Version: 3.2.1
    I really do like this plugin, but I'm having problems with server hosting. I have seen the other ratings talking about this, but the issue for me is that copying the start_bootloader.sh file changes the file size to 0 bytes. No clue why? Please help!

    Also, would it be possible to have an option to run a restart command instead of restarting with autorestart (like "/restart")?
    1. ServersMC
      Author's Response
      Thank you for your review! The reason why the .sh file is turning into 0 bytes is because server hostings do not allow custom bash (.sh) files. So you would have to run a custom JAR by having your host run BootLoader.
  8. Impirius
    Impirius
    5/5,
    Version: 3.2.1
    Amazing restart plugin, and probably the only one. I love it because it allows you to customize anything you wouldn't even think of needing. For example; it allows you to restart on intervals or clock time, it also allows you to edit all of the announcements that are announced every time. The only thing I wish it had is a feature for the kick message with new lines like \n or %NEWLINE%. Anyways, as I said before, this is an amazing plugin 100% recommend it!
    1. ServersMC
      Author's Response
      Thank you for the review! I know there are servers out there that like for every message to be color coordinated to look professional so I give owners the opportunity to do so.
  9. lukeeexd
    lukeeexd
    5/5,
    Version: 3.2.1
    Amazing plugin. Very easy to use, does exactly what it says. Dev is also very helpful and quick at responding to questions
    1. ServersMC
      Author's Response
      Thank you for the review!
  10. HDNHD
    HDNHD
    4/5,
    Version: 3.2.1
    closes the server but does not restart :(
    -------------------------------------------------
    i use multicraft pls help
    1. ServersMC
      Author's Response
      Please read the instruction section before giving a false review. If you’re still having trouble. PM me.