[INACTIVE][ADMN] DelayedStop v0.17 - stop the server in x seconds, and inform your players [860]

Discussion in 'Inactive/Unsupported Plugins' started by ddj, Mar 20, 2011.

  1. Offline

    ddj

    DelayedStop - As admin you sometimes need to restart your server to get plugins working
    properly. As your server is always crowded with players, you want to
    announce this restarts a few minutes before you actually do it.

    This plugins lets you stop your server in x seconds.
    Every minute, and under the minute every 10 seconds, the planned restart
    is announced as broadcast, so you can sit back and wait untill the server stops
    automatically.

    Version: v0.17
    Tested with craftbukkit builds: b860

    Features:
    • Stop the server after x seconds
    • Kick everyone just before server save-all & shutdown
    • Inform players on the upcoming reboot (at configurable intervals (since v0.16!)
    • Configurable messages & colors
    • Works with permissions/Groupmanager and without it (player must me op then)
    Installation (open)

    * Drop the Jar in your plugin directory, and start your server.


    Config.yml (open)

    Code:
    # Configuration for DelayedStop
    #   - ddj 2011
    #
    
    ### Notification settings
    #   Here you can setup at what intervals in the countdown, you would like
    #   to inform your players on the upcoming server shutdown/restart
    #   Use <number>m to use minutes,
    #   Use <number> or <number>s to use seconds
    #   ALWAYS setup this values from high to low otherwise it will not work as expected!!
    notification:
        notify-at: 10m,5m,1m,30s,10s
    ### Labels ###
    labelsandcolors:
        chat-prefix: '[DS]'
        chat-prefix-color: '&d'
        chat-message-color: '&e'
        chat-highlighted-color: '&a'
        ### Broadcast messages  ###
    broadcasttext:
        time-left-message: 'The server will restart in @time-left@'
        restart-cancelled-message: 'Server restart is cancelled!'
        server-down-message: 'Server is shutting down!'
        restart-resumed-message: 'Server restart is resumed'
        restart-paused-message: 'Server restart is paused'
        minute-text: 'minutes'
        second-text: 'seconds'
        minutes-text: 'minutes'
        seconds-text: 'seconds'
        and-text: 'and'
    


    Permissions (open)

    Code:
    delayedstop.start     /dstop start
    delayedstop.cancel    /dstop cancel
    OR
    if you don't use permissions/groupmanager, make sure the player is OP
    


    Commands (open)

    Code:
    Command    : /dstop <seconds> <reason>
    Permissions: delayedstop.start
    Description: Stops server in <seconds> seconds, <reason> is optional
    
    Command    : /dstop pause
    Permissions: delayedstop.start
    Description: pauses countdown
    
    Command    : /dstop go or /dstop resume
    Permissions: delayedstop.start
    Description: resumes paused countdown
    
    Command    : /dstop cancel
    Permissions: delayedstop.cancel
    Description: cancels delayed server shutdown
    
    
    


    Download latest version:
    http://www.crafters.nl/cc/DelayedStop_v0.17.zip (Jar only)
    Source Code is included in Jar

    Changelog:
    Version 0.17
    • Fixed first countdown message where total seconds was 1 to less
    • The big cleanup has started:
      - Moved some methods from main class to seperate classfiles
    Version 0.16
    • Added configurable interval messages
      default value now is: 10m,5m,1m,30s,10s,5s
      This means, at 10 ,5 and one minute, at 30,10 and 5 seconds there will be a message.
      You can use <number>m for minutes, or just <number> or <number>s for seconds
    All versions (open)

    Version 0.15
    • Removed debug message (tick every second:) )
    Version 0.14
    • Added /dstop pause - /dstop resume|go command
    Version 0.13
    • Changed timer setup.
      Using a time-plugin (like propertime) caused the countdown to behave strangly.
      The timer now is not connected to 'server-ticks' but to real time.
    • Added more variable messages (different text for 1 second / 2 seconds)
      Remove your config.yml and let the plugin re-create it for all options
    • Added additional text for broadcasting reason of restart.
      /dstop 10 Installation new plugin results in :
      "The server will restart in 30 seconds (Installation new plugin)"
    Version 0.12
    • Default config.yml contained error that caused exceptions when reading the kick-message (server-down-message)
    Version 0.11
    • Fixed problem with exception while kicking players during shutdown
    Version 0.10
    • Initial Release
     
    svict4, Litt, AS1LV3RN1NJA and 4 others like this.
  2. Offline

    Hwkeye

    is this plugin still active? if not then is there another one like this?
     
  3. Offline

    ddj

    This plugin is still active, and working on bukkit 860..
    Have to update testresults, will do that asap
     
  4. Offline

    gamer1129

    Hey ddj. I love this plugin, but I am a little tired of having to break out my calculator to see how many seconds are in however many minutes or hours i want my server to start, will you ever add that time functionality that you did to the config (10m, 20s, etc.) to the in-game commands?
     
  5. Offline

    Hwkeye

    I can't seem to edit the config file. When I restart or reload half of the config is missing and can't use the plugin at all. But if I don't edit it, it works just fine no matter how many times I restart or reload the server :/

    Don't worry.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016
  6. Offline

    emoknight

    can u add hours like /dstop 2h30m ?
     
  7. Offline

    xlilcasper

    Could you add the option to do this after the server has been running for X minutes/hours. I have a task scheduled to reboot my server every 6 hours that I would like to remove and just use a plugin for. This does pretty much everything my task does except run every X hours. Ideally this would be scheduled based upon the time of the day but I would be ok if it was set to due it after the server has ran for X hours straight.
     
  8. Offline

    dak393

    Can we get an update for this? :)
     
  9. Offline

    Unkiejay

    hey, awesome addon, goes well on my server, but i was just wondering if this plugin is still active, or able to still be used with bukkit version#1000
     
  10. Offline

    DooBLER

    Is this plugin still active?
    works on RB 1185 but no news from author
     
  11. Offline

    ratty

    Darn it, this broke with RB1240. It kicks all the players, but gives an exception and doesnt shut down the server.

    Code:
    03:28:31 [INFO] [DelayedStop] Shutting down
    03:28:31 [SEVERE] Exception in thread "AWT-EventQueue-0"
    03:28:31 [SEVERE] java.lang.NoSuchMethodError: net.minecraft.server.MinecraftServer.a()V
    03:28:31 [SEVERE]       at nl.crafters.delayedstop.DelayedStop.shutDown(DelayedStop.java:152)
    03:28:31 [SEVERE]       at nl.crafters.delayedstop.DelayedStop.TimeTick(DelayedStop.java:130)
    03:28:31 [SEVERE]       at nl.crafters.delayedstop.DelayedStop.access$0(DelayedStop.java:103)
    03:28:31 [SEVERE]       at nl.crafters.delayedstop.DelayedStop$1.actionPerformed(DelayedStop.java:59)
    03:28:31 [SEVERE]       at javax.swing.Timer.fireActionPerformed(Timer.java:313)
    03:28:31 [SEVERE]       at javax.swing.Timer$DoPostEvent.run(Timer.java:244)
    03:28:31 [SEVERE]       at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
    03:28:31 [SEVERE]       at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:647)
    03:28:31 [SEVERE]       at java.awt.EventQueue.access$000(EventQueue.java:96)
    03:28:31 [SEVERE]       at java.awt.EventQueue$1.run(EventQueue.java:608)
    03:28:31 [SEVERE]       at java.awt.EventQueue$1.run(EventQueue.java:606)
    03:28:31 [SEVERE]       at java.security.AccessController.doPrivileged(Native Method)
    03:28:31 [SEVERE]       at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
    03:28:31 [SEVERE]       at java.awt.EventQueue.dispatchEvent(EventQueue.java:617)
    03:28:31 [SEVERE]       at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
    03:28:31 [SEVERE]       at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
    03:28:31 [SEVERE]       at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
    03:28:31 [SEVERE]       at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
    03:28:31 [SEVERE]       at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
    03:28:31 [SEVERE]       at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
    
    Is there an alternative to this plugin? It's very handy. I use it with SimpleCronClone to do a nice automatic daily restart with warning messages.
     
  12. Offline

    rbos

    sad face. Yeah, 1240 breaks it.
     
  13. Offline

    DooBLER

    @ddj
    Is there chance to update?
     
  14. Offline

    Yurikoma

    hey, could you please update this plugin?
     
  15. Offline

    Brvtvs

    Update this awesome plugin please
     
  16. Offline

    dog.big

    Please fix it. Not working with latest Bukkit.
    Code:
    2011-10-29 21:43:08 [INFO] [DelayedStop] Shutting down
    2011-10-29 21:43:08 [SEVERE] Exception in thread "AWT-EventQueue-0"
    2011-10-29 21:43:08 [SEVERE] java.lang.NoSuchMethodError: net.minecraft.server.MinecraftServer.a()V
    2011-10-29 21:43:08 [SEVERE] at nl.crafters.delayedstop.DelayedStop.shutDown(DelayedStop.java:152)
    2011-10-29 21:43:08 [SEVERE] at nl.crafters.delayedstop.DelayedStop.TimeTick(DelayedStop.java:130)
    2011-10-29 21:43:08 [SEVERE] at nl.crafters.delayedstop.DelayedStop.access$0(DelayedStop.java:103)
    2011-10-29 21:43:08 [SEVERE] at nl.crafters.delayedstop.DelayedStop$1.actionPerformed(DelayedStop.java:59)
    2011-10-29 21:43:08 [SEVERE] at javax.swing.Timer.fireActionPerformed(Timer.java:291)
    2011-10-29 21:43:08 [SEVERE] at javax.swing.Timer$DoPostEvent.run(Timer.java:221)
    2011-10-29 21:43:08 [SEVERE] at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    2011-10-29 21:43:08 [SEVERE] at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:641)
    2011-10-29 21:43:08 [SEVERE] at java.awt.EventQueue.access$000(EventQueue.java:84)
    2011-10-29 21:43:08 [SEVERE] at java.awt.EventQueue$1.run(EventQueue.java:602)
    2011-10-29 21:43:08 [SEVERE] at java.awt.EventQueue$1.run(EventQueue.java:600)
    2011-10-29 21:43:08 [SEVERE] at java.security.AccessController.doPrivileged(Native Method)
    2011-10-29 21:43:08 [SEVERE] at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    2011-10-29 21:43:08 [SEVERE] at java.awt.EventQueue.dispatchEvent(EventQueue.java:611)
    2011-10-29 21:43:08 [SEVERE] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    2011-10-29 21:43:08 [SEVERE] at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    2011-10-29 21:43:08 [SEVERE] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    2011-10-29 21:43:08 [SEVERE] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    2011-10-29 21:43:08 [SEVERE] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    2011-10-29 21:43:08 [SEVERE] at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    UPDATE
    Temporary fixed by me (v0.18) for latest CB #1337:
    http://www.2shared.com/file/hh-5V8Nl/DelayedStop.html
    or
    http://www.sendspace.com/file/au9qj1





    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016
  17. Offline

    DaddyCool64

  18. Offline

    FattyDave18

    Is anyway able to get this working with 1.2? Or suggest an up to date plugin that does similar?
    Thanks
     
    DaddyCool64 likes this.
  19. Offline

    Tom000

    I loved this plugin because when you have a server with 32-64 players its nice to inform before you stop it.
    Please update!:)
     
    DaddyCool64 likes this.

Share This Page