[ADMN] AutoStop v0.53 - Auto Stop & Restart Your Server [650-803]

Discussion in 'Inactive/Unsupported Plugins' started by jasonznack, May 14, 2011.

  1. Offline

    Phaedrus

    Server AutoStop
    Time-Based Scheduled Server Shutdowns and Restarts

    (Maintenance Release Edition)

    NOTE: May not be working properly in CraftBukkit RB 928 with Permissions 3.


    Credit: AutoStop is a plugin originally written by @dv90 and last updated by @Afforess.
    ALL CREDIT GOES TO THEM. I have done nothing, other than make the plugin visible again.

    The Following Is Modified From the Original Thread:

    I. Requirements: Permissions 2.7+ (Optional)

    II. Description: A simple plugin that saves player and chunk data then shuts the server down at a specified time. Great for clearing memory leaks and updating plugins automatically.

    III. Features:
    • Works with Windows AND Linux AND Mac
    • Saves Player Data and Chunk Data before stopping the server
    • Gives a custom warning at specified time before shutting down
    • Quickly shuts server down
    • Uses autostop.properties to specify what time (24-hour clock) it should shutdown
    • Automatically creates the properties file if it doesn't exist
    • Automatically restarts server (if you enable it)
    • Multiple restart times possible
    IV. Installation:

    1. Download the AutoStop.jar listed below and put it in your plugins folder.
    2. Start and Stop the server once to create the Server AutoStop folder and config file.
    3. Edit the config file to suit your needs. See the example below.
    V. Special Notes:

    • The plugin will automatically put AutoRestart.jar in your bukkit directory.
      • Don't run it; it won't do anything.
      • Do not delete or move it.
    • If your server doesn't auto restart, post your restart_log.txt here.
      • If there is no restart_log.txt, you're doing it wrong.
    • If you use a .bat file (server_nogui.bat), set your path to: path=start server_nogui.bat
    • ANYBODY USING AN EXTERNAL SERVER (Such as a VPS):
      • Remember, your server's timezone may be different. Take that into account when setting up your autostop.properties.
    VI. Commands:

    • /reboot - Immediately saves data and restarts the server.
    • /restart - Same as reboot.
    VII. Permissions:

    • Node: autostop.use
    • Don't use the Permissions Plugin? Just OP yourself.
    IIX. Properties File Example:

    Note: It appears there are duplicate properties files created. One in /plugins/AutoStop/and another in /plugins/ServerAutoStop/. Be sure to set your parameters in BOTH FILES.

    Code:
    stoptime=12:00:00 12:05:00 12:10:00
    # Use 24-hour time. Separate times with a space. [Hour:Minute:Second]
    warntime=0:10 0:30 1:00 5:00 15:00
    # Displays warning this many min:sec before shutting down. Separate with space. [Minutes:Seconds]
    warnmsg=Shutting down...
    # Warning message to display.
    enablerestart=true
    # Enables automatic server restarts. If this is true, path must not be blank.
    path=java -jar craftbukkit.jar
    # Path to server file (including any arguments). This can also be a command if you are using crontab/screen/etc.
    # Linux screen example:
    # path=screen -dmS MinecraftServer java -jar craftbukkit.jar
    
    IX. Current Release:
    X. Trouble Shooting:
    • Please read this thread before posting. Several tips have been posted that might solve your problem.
    • Also see the old thread first before posting your issues. It's a short thread, so no excuses for not reading first.
    • Original Thread: http://forums.bukkit.org/threads/7425/
    XI. Known Issues:
    • It appears there are duplicate properties files created. One in /plugins/AutoStop/ and another in /plugins/ServerAutoStop/. Be sure to set your parameters in BOTH FILES.
    XII. Change Log:
    • Version 0.53
      • Fixed a few small bugs
      • Kicks all players before shutting down
      • Updated to latest RB
    • Version 0.52
      • Supports multiple warn times now
      • Other small fixes
    Older Change Log (open)


    Version 0.51
    • Fixed a small problem with the syntax of the auto-generated autostop.properties file.
    Version 0.5

    • Multiple stop/restart times
    • Added better support for Windows cmd users
    Version 0.4

    • /reboot and /restart commands
    • Permissions support for commands
    Version 0.3

    • Automatic server restarts
    • Stop/Warn time precision works with seconds now
    Version 0.2

    • Added configurable warning message and warning time
    • Attempted automatic restarts but had no luck; possible in a future release
    Version 0.1

    • Initial Release



    Credit: AutoStop is a plugin originally written by @dv90 and last updated by @Afforess.
    ALL CREDIT GOES TO THEM. I have done nothing, other than make the plugin visible again.
     
  2. Offline

    Phaedrus

    Try adding a delay to your launch bat. Read through the thread to see examples.

    Download link for dropbox works fine for me.
    Also still functioning fine with bukkit 819 on windows

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 16, 2016
  3. Offline

    belfedia

    ok i give a try on debian ;)
     
  4. Offline

    johncraven

    doesnt work with latest Permissions
     
  5. Offline

    Phaedrus

    Which version?
     
  6. Offline

    johncraven

    3.1.4

    Code:
    19:36:15 [SEVERE] Error occurred while enabling ServerAutoStop v1.0.0 (Is it up to date?): com.nijikokun.bukkit.Permissions.Permissions.setupPermissions()V
    java.lang.NoSuchMethodError: com.nijikokun.bukkit.Permissions.Permissions.setupPermissions()V
            at net.hailxenu.serverautostop.AutoStopPlugin.onEnable(AutoStopPlugin.java:44)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:125)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:750)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:253)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:134)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:112)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:232)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:219)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
     
  7. Offline

    Merkurijus

    Works on 818 linux + permissions, but you need to remove screen from you launch file, something like this

    Code:
    #!/bin/sh
    java -Xmx1024M -jar craftbukkit.jar
    But then there's the problem, our CPU usage was 114%, when before the restart it was 5%
     
  8. Offline

    monir

    i get alot of jave error "could not pass event player _quit to LWC why is that?
     
  9. Offline

    Phaedrus

    Check lwc?
     
  10. Offline

    jor956

    Code:
    2011-06-12 02:34:42 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'restart' in plugin ServerAutoStop v1.0.0
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:128)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:287)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:714)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:680)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:673)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:223)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:399)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
    at net.hailxenu.serverautostop.AutoStopPlugin.onCommand(AutoStopPlugin.java:163)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more
    When trying to restart with config:
    Code:
    stoptime=01:00:00 03:00:00 05:00:00 07:00:00 09:00:00 11:00:00 13:00:00 15:00:00 17:00:00 19:00:00 21:00:00 23:00:00
    # Use 24-hour time. Separate times with a space. [Hour:Minute:Second]
    warntime=10:00 05:00 00:10 00:05
    # How many seconds before shutdown/restart to show warning. Separate times with a space.[Seconds]
    warnmsg=Restarting...
    # Warning message to display.
    enablerestart=true
    # Enables automatic server restarts. If this is true, path must not be blank.
    path=@ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    java -Xincgc -Xmx1G -jar craftbukkit-0.0.1-SNAPSHOT.jar
    PAUSE
    # Path to server file (including any arguments). This can also be a command if you are using crontab/screen/etc.
    
    Any way to fix this? I'm on CB 816 I think?
    Thanks.
     
  11. Offline

    smarf12

    Hey I tryed insatlling it but it keeps gving me error when it restrts
    it says Unable to access jarfile craftbukkit.jar
    please help me out.
     
  12. Offline

    Dark_Vortex

    Hi,
    I am running Permissions 3.1.5 (Yeti) and am getting the following error when I start my server.
    Code:
    2011-06-15 14:57:37 [SEVERE] Error occurred while enabling ServerAutoStop v1.0.0 (Is it up to date?): com.nijikokun.bukkit.Permissions.Permissions.setupPermissions()V
    java.lang.NoSuchMethodError: com.nijikokun.bukkit.Permissions.Permissions.setupPermissions()V
        at net.hailxenu.serverautostop.AutoStopPlugin.onEnable(AutoStopPlugin.java:44)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:125)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:750)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:253)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:134)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:112)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:232)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:219)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    and when I stop my server
    Code:
    2011-06-15 14:57:41 [SEVERE] Error occurred while disabling ServerAutoStop v1.0.0 (Is it up to date?): null
    java.lang.NullPointerException
        at net.hailxenu.serverautostop.AutoStopPlugin.onDisable(AutoStopPlugin.java:148)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
        at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:771)
        at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:269)
        at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:262)
        at org.bukkit.craftbukkit.CraftServer.disablePlugins(CraftServer.java:123)
        at net.minecraft.server.MinecraftServer.stop(MinecraftServer.java:260)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:341)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Will assume it has something to do the the permissions addon :)
    Regards
    Dark
     
  13. Offline

    Schlumpfpirat

    Hey there.
    I got a little issue.. - I want my server to say Server restarting in 30 seconds and restarting in 30 seconds then.. but it restarts instantly.. any ideas?
    Oh and is it possible to change the Server shutting down message in server restarting now...
    Thanks

    Code:
    stoptime=12:00:00 16:00:00 20:00:00
    # Use 24-hour time. Separate times with a space. [Hour:Minute:Second]
    warntime=30:00
    # How many seconds before shutdown/restart to show warning. Separate times with a space.[Seconds]
    warnmsg=The Server will restart in 30 seconds...
    # Warning message to display.
    enablerestart=false
    # Enables automatic server restarts. If this is true, path must not be blank.
    path=java -jar craftbukkit.jar
    # Path to server file (including any arguments). This can also be a command if you are using crontab/screen/etc.
    
     
  14. Offline

    iFuze

    Thx for the plugin, my server is now thanks to you, closer to be release.
     
  15. Offline

    Phaedrus

    Glad it`s working for you. Some people have been having issues.
     
  16. Offline

    efstajas

    I really need this plugin but it doesn't start up on Build 928 for me.
    Code:
    2011-06-25 16:58:05 [SEVERE] Error occurred while enabling ServerAutoStop v1.0.0 (Is it up to date?): com.nijikokun.bukkit.Permissions.Permissions.setupPermissions()V
    java.lang.NoSuchMethodError: com.nijikokun.bukkit.Permissions.Permissions.setupPermissions()V
        at net.hailxenu.serverautostop.AutoStopPlugin.onEnable(AutoStopPlugin.java:44)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:857)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:253)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:157)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:136)
        at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:364)
        at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:281)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:304)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:725)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:691)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:684)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:223)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Seems like a problem with permissions, maybe it doesn't work with Permissions 3?
     
  17. Offline

    Phaedrus

    You might want to look into using Remote Tool Kit for restarts
     
  18. Offline

    efstajas

    I did exactly this and it works perfectly. :)
     
  19. Offline

    Phaedrus

    I think I might end support for this plugin since I haven't been able to find a developer to help update it. I haven't updated to 928 on my own server yet, so if this plugin doesn't work there anymore as seems to be the case I will just retire it and switch the remote tool kit myself. I think there is another restart plugin being actively developed as well. So there are good alternatives available now.
     
  20. Offline

    efstajas

    That's sad, the reason I tried your plugin first was that it looked so much easier to set up. It's for people who just need restarts, not all the other (great) stuff Remote Toolkit has to offer.
     
  21. Offline

    Schlumpfpirat

    It's broke. Neighter /restart nor the autorestart works any longer.
    How about the message I already asked once? Is it possible to change the "Server shutting down..." to "Restarting server..." ?

    Code:
    2011-07-02 02:48:42 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'restart' in plugin ServerAutoStop v1.0.0
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:298)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:711)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:676)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:669)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
        at net.hailxenu.serverautostop.AutoStopPlugin.onCommand(AutoStopPlugin.java:163)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
     
  22. Offline

    Phaedrus

    Yeah it doesn't work. Try remote toolkit.
     
  23. Offline

    Don Redhorse

    hmm do you have the sourcecode still around?
     
  24. Offline

    Phaedrus

    Nope sorry, looks like it isn't being hosted by afforess on his github page anymore and I don't have a copy handy. I don't think I even have a copy of the jar file in a backup anymore.
     
  25. Offline

    Don Redhorse

    hmm... ok I think I have the jar still... I will look what I can do ...
     
  26. Offline

    smiggle0404

    hi, this plugin is pretty good and im on a mac and when i enabled auto restart, when it restarted it says restarting server... then it just stops. It dosent restart anything lol any help plz?
     
  27. Offline

    Phaedrus

    This plugin is no longer supported. I suggest you look for a replacement such as Remote Toolkit.
     

Share This Page