[UNSUPPORTED] [ADMN] BukkitToDate v1.8.5 BETA - Keeps your server up-to-date! [168+]

Discussion in 'Inactive/Unsupported Plugins' started by WMisiedjan, Jan 29, 2011.

  1. Offline

    WMisiedjan

    BukkitToDate
    Keeps your server Up-To-Date!

    I DO NOT SUPPORT ALL THE VERSIONS ANYMORE.
    CURRENTLY WORKING ON A NEW VERSION THAT WILL FIX Mutli-OS 100% and most of the other bugs!

    Dev thread: http://forums.bukkit.org/threads/ad...ur-server-up-to-date-development-status.3843/
    What is BukkitToDate?
    BukkitToDate automatically checks for new builds from Bamboo, and applies them to craftbukkit.jar. I created this because bukkitUp! didn't have enough features for my needs.
    This plugin also needs a special launcher. That checks for updates and applies them before it launches craftbukkit from itself. Also the plugin uses this to restart the server.

    Features:
    * Launcher

    - * Updates & Switches between craftbukkit.jar file to a specific build.
    * Launches craftbukkit.jar.
    * "-switchto BUILD" argument added, downloads build if don't exits in build folder.
    - Plugin
    * Permissions Plugin Supported! Not required anymore. Ops also supported.
    * Monitor with specific time interval, change-able in settings file. See below.
    * Restart Timer, Warns your players for a restart. change-able in settings file. See below.
    - Commands
    * /btd - Shows command list!
    * /btd info - Shows current BukkitToDate info: Current Build, Bamboo Build, Settings etc.
    * /btd update - Updates to LATEST version of bamboo.
    * /btd restart - Restarts your server from launcher, So it automatically checks for updates to.
    * /btd restart cancel - Cancels a restart
    * /btd switchto [build] - Switches server to specific build. If not available/downloadable it reuses old build.
    * /btd monitor enable/disable - Enables or disables the check/auto-download monitor.

    Todo:

    * Making code more stable.
    * - /btd switchto previous - restores back to previous build the server used.
    * Commands for editing settings for example enable or disable autoupdate.

    Permissions:


    Permissions Plugin is not required anymore.
    Although it's still supported:
    Just add: ' - bukkittodate.admin' to your admin group or only yourself. Ops also have access!
    Only Ops and people with Permissions can do /btd commands.

    How-To:
    Download the newest version below.

    Windows:
    1. Extract the .zip file in the root folder of your bukkit server. Be sure Launcher.jar is in the root folder!
    2. Run your server with the 'launcher.bat' file!

    Linux & Mac: (Experimental Launcher)
    1. Extract the .zip file in the root folder of your bukkit server. Be sure Launcher.jar is in the root folder!
    2. Launch Launcher.jar file in the terminal.
    Example: java -jar Launcher.jar

    Settings file:
    The settings file is located at: /plugins/bukkittodate/settings.properties.
    Automatically generated at first launch.

    This is an example of a settings file:
    Code:
    #Settings:
    #How long a standard countdown must take: (for restarts) (in minutes)
    restarttimer=5
    #DON'T EDIT THIS. USED TO STORE CURRENT BUILD:
    currentbuild=201
    #How much ram (in MB) craftbukkit.jar may use:
    serverram=1024
    #Auto-Update craftbukkit.jar? :
    autoupdate=false
    #Automatic check for new updates? Doesn't download if autoupdate is disabled
    enablemonitor=true
    #DON'T EDIT THIS. USED TO STORE PREVIOUS BUILD:
    previousbuild=172
    #Update monitor check interval (in minutes):
    checkinterval=20
    Development Information:
    http://forums.bukkit.org/threads/ad...ur-server-up-to-date-development-status.3843/

    Changes/Downloads:
    - <Edit by Moderator: Redacted mediafire url>
    * I think I fixed the problems on all operating systems.
    * My launcher now launches craftbukkit within itself. But somehow my Runtime.getRuntime().addShutdownHook don't get invoked, or doesn't work so if you close down the launcher the server will keep running in background.
    * Restarting works 100%
    * Switching to specific builds work!
    * Commands fixed.
    * And more little updates/improvements.

    - <Edit by Moderator: Redacted mediafire url>

    * Deleted & parameter when launching, Should fix Linux Command-Line only errors. Untested!
    * Changed exit code from 1 to 0. Should fix Mac OS errors. Untested!
    * Changed deflaut autoupdate value to false.

    - <Edit by Moderator: Redacted mediafire url>

    * BETA - Mac and Linux support added. Need testers!
    * Only does a countdown to restart when there are other players then you online.
    * Only works for builds higher then, 170+.
    * Permissions not required anymore. Still supported.
    * Switched to onCommand.
    * And much more!

    - <Edit by Moderator: Redacted mediafire url>

    * Fixed 'First Time Running' bugs.
    * Can now change server ram in settings file.

    Credits/Thanks:


    I really like to thank LukeGB for hosting Bamboo.
    Also appreciated the help that I got in the IRC channels. :D

    Source code will be available soon.

    Greetings, WMisiedjan
     
    Last edited by a moderator: Dec 15, 2016
    rizz360 and Killie01 like this.
  2. Offline

    Riot

    First. Many thanks for this.
    --- merged: Jan 30, 2011 12:13 AM ---
    Opps nevermind not a plugin.
     
  3. Offline

    WMisiedjan

    It is a plugin, But also a launcher. Launcher just allows you to restart your server, and replace automatically craftbukkit.jar with newest build. So, there is also a plugin. That's the one that has the monitor and allows you to do commands in-game.
     
  4. Offline

    Pluckerpluck

    Just a warning that this may be dangerous to anyone with many plugins or who needs a stable server. Not all successful builds of bukkit are stable and there's always the risk plugins will break. So personally I'll just manually check.

    However, is it possible to to have it not check? So that way it will only update when asked.
    1) That would be really useful, especially as you can update to specific builds
    2) It would make restoring pretty redundant if it just reverts to latest...

    Not sure if it's implemented already, want to check these things before I set it up you see.
     
  5. Offline

    WMisiedjan

    Yeah, Not supported yet, Will add it to my todo list and update it soon! I will add a feature like a command:
    /btd updateto 165 for example, to update your server to build 165.

    And also be able to disable the monitor and pre-updater.
     
  6. Offline

    Azraeil

    I personally would love something that just informed me of updates. I find it hard to keep track of all the updates.. :[
     
  7. Offline

    WMisiedjan

    @Azraeil:
    The 'CommandsOnly' feature/setting will only give you a warning(in-game and in console) if a new version is out. And if you prefer to update to it, just do a in-game command like:
    /btd updateto 169

    Update coming soon.
     
  8. Offline

    hyperch

    will that keep also a list of previous bukkit builds? As some people said for servers with lots of plugins a more stable build would be requried. If it could download all the builds and lets you easily switch between them that would be good. You could test the newest one, if there are problems, just switch back to an older one.
     
  9. Offline

    WMisiedjan

    You can easily soon switch fast between different builds using a command.
    It saves your old builds in a folder.

    The command in the future will be:
    /btd switchto 176 for example. it download if the build is not available.
     
  10. Offline

    hyperch

    sweet :)

    /me tries it now
    --- merged: Jan 30, 2011 4:48 PM ---
    awwwwwww
     
  11. Offline

    jimmydorry

    Does everything I would love BukkitUp! to do... except only runs on windows... too bad. I'll have to wait for a port to Linux.
     
  12. Offline

    WMisiedjan

    Yeah need to change some settings when running craftbukkit.jar
    --- merged: Jan 30, 2011 8:31 PM ---
    /btd switchto #build - Will be available in next update. Probably Tomorrow night.

    Which OS do you use? and how do you launch craftbukkit.jar on your OS normally?
     
  13. Offline

    kjab

    I use Ubuntu (Linux) 10.04LTS the command to launch is
    Code:
    java -Xmx1024M -Xms1024M -jar craftbukkit.jar nogui
     
  14. Offline

    jimmydorry

    I use Fedora Core (12), and launch with:
    Code:
    #!/bin/bash
    cd "${0%/*}"; java -Xms512M -Xmx700M -jar craftbukkit-0.0.1-SNAPSHOT.jar;
    The first line, while not strictly necessary, tells the system that this is an executable script and the type it is.

    I have forgotten what the first part of the second line does.

    The second part of the second line calls up the craftbukkit jar to be run in a JVM with a minimum of 512Mb, Maximum 700Mb and to be run using the installed java software on the machine.
     
  15. Offline

    WMisiedjan

    Thanks very useful, In the next update there will be, Custom able shutdown timers that warns your users for restarts/updates, a /btd switchto buildid command. And much more. Not sure if my linux & macos launchers already work, need testing.
    Also, It's going to be available for the latest builds.
    Worked a lot of hours on it today.

    Also options to disable the Update Checker Monitor and Automatic Updates.

    Hopefully it's tomorrow useable enough to release.

    Greetings, Wendell Misiedjan.
     
  16. Offline

    powback

    who's the man? YOU'RE THE MAN!
     
  17. Offline

    WMisiedjan

    Updated.

    See main post for change log & download.
     
  18. Offline

    MiniKahn

    does not work for me-.-

    Exception in Thread "main"
     
  19. Offline

    WMisiedjan

    @MiniKahn:
    Please say your build, plugins and full error please.

    Saying 'It doesn't work doesn't help me', You need to launch the launcher in CMD. see the launcher.bat included. Maybe that helps.
     
  20. Offline

    celedhrim

    Under linux there is on major issue
    the launcher launch from a term launch a second term with craftbukkit but on my serv , I haven't X so , laucher just stop and can't launch craftbukkit.jar because can't launch a second term.
     
  21. Offline

    WMisiedjan

    Tnx for reporting, Will try to fix this as soon as possible.
     
  22. Offline

    Jeppo

    The Launcher won't work :(

    "Starting BukkitToDate Launcher version 0.2
    Loading Plugin Settings...
    Server is Up-To-Date at build #218
    Press any key to continue . . ."

    A java.exe-window flashes, and nothing happens.

    Windows Server 2008 SP2 x86
     
  23. Offline

    PierreLouis

    I'll be a Mac tester for you.

    My configuration:

    MacBook
    Mac OS 10.6.6 (So Intel Based)
    BukkitToDate v1.8
    Craftbukkit v218

    Ok just tested the launcher and I get an error that says:
    [​IMG]
    On the console:
    Code:
    2/2/11 2:03:54 PM    [0x0-0x185185].com.apple.JarLauncher[3269]    Starting BukkitToDate Launcher version 0.2
    2/2/11 2:03:54 PM    [0x0-0x185185].com.apple.JarLauncher[3269]    Loading Plugin Settings...
    2/2/11 2:03:55 PM    [0x0-0x185185].com.apple.JarLauncher[3269]    Server is Up-To-Date at build #218
    2/2/11 2:03:55 PM    com.apple.launchd[1]    (org.postfix.master[3270]) Exited with exit code: 1
    2/2/11 2:03:55 PM    com.apple.launchd[1]    (org.postfix.master) Throttling respawn: Will start in 9 seconds
    2/2/11 2:04:05 PM    com.apple.launchd[1]    (org.postfix.master[3275]) Exited with exit code: 1
    2/2/11 2:04:05 PM    com.apple.launchd[1]    (org.postfix.master) Throttling respawn: Will start in 9 seconds
    2/2/11 2:04:15 PM    com.apple.launchd[1]    (org.postfix.master[3276]) Exited with exit code: 1
    2/2/11 2:04:15 PM    com.apple.launchd[1]    (org.postfix.master) Throttling respawn: Will start in 9 seconds
    2/2/11 2:04:25 PM    com.apple.launchd[1]    (org.postfix.master[3277]) Exited with exit code: 1
    2/2/11 2:04:25 PM    com.apple.launchd[1]    (org.postfix.master) Throttling respawn: Will start in 9 seconds
    2/2/11 2:04:35 PM    com.apple.launchd[1]    (org.postfix.master[3278]) Exited with exit code: 1
    2/2/11 2:04:35 PM    com.apple.launchd[1]    (org.postfix.master) Throttling respawn: Will start in 9 seconds
    2/2/11 2:04:45 PM    [0x0-0x186186].com.apple.JarLauncher[3280]    Starting BukkitToDate Launcher version 0.2
    2/2/11 2:04:45 PM    [0x0-0x186186].com.apple.JarLauncher[3280]    Loading Plugin Settings...
    2/2/11 2:04:45 PM    com.apple.launchd[1]    (org.postfix.master[3279]) Exited with exit code: 1
    2/2/11 2:04:45 PM    com.apple.launchd[1]    (org.postfix.master) Throttling respawn: Will start in 9 seconds
    2/2/11 2:04:45 PM    [0x0-0x186186].com.apple.JarLauncher[3280]    Server is Up-To-Date at build #218
    2/2/11 2:04:55 PM    com.apple.launchd[1]    (org.postfix.master[3283]) Exited with exit code: 1
    2/2/11 2:04:55 PM    com.apple.launchd[1]    (org.postfix.master) Throttling respawn: Will start in 9 seconds
    2/2/11 2:05:05 PM    com.apple.launchd[1]    (org.postfix.master[3284]) Exited with exit code: 1
    2/2/11 2:05:05 PM    com.apple.launchd[1]    (org.postfix.master) Throttling respawn: Will start in 9 seconds
    2/2/11 2:05:15 PM    com.apple.launchd[1]    (org.postfix.master[3285]) Exited with exit code: 1
    2/2/11 2:05:15 PM    com.apple.launchd[1]    (org.postfix.master) Throttling respawn: Will start in 9 seconds
    2/2/11 2:05:25 PM    com.apple.launchd[1]    (org.postfix.master[3286]) Exited with exit code: 1
    2/2/11 2:05:25 PM    com.apple.launchd[1]    (org.postfix.master) Throttling respawn: Will start in 9 seconds
    2/2/11 2:05:35 PM    com.apple.launchd[1]    (org.postfix.master[3287]) Exited with exit code: 1
    2/2/11 2:05:35 PM    com.apple.launchd[1]    (org.postfix.master) Throttling respawn: Will start in 9 seconds
    2/2/11 2:05:45 PM    com.apple.launchd[1]    (org.postfix.master[3288]) Exited with exit code: 1
    2/2/11 2:05:45 PM    com.apple.launchd[1]    (org.postfix.master) Throttling respawn: Will start in 9 seconds
    [ETC]
    Continues with the last two lines over and over.

    The plugin itself is working good.

    Hope that helps.
     
  24. Offline

    WMisiedjan

    @Jeppo
    Thanks for reporting, My Launcher and plugin automatically tries to create a new window and launch your command in there.
    A update will be here as soon as possible that launches craftbukkit.jar in the same window.

    @PierrreLouis
    Thanks for testing this on Mac OS. I think this error occurs because I exit the launcher and craftbukkit with exit code 1. I thought that was the succes code. But I just looked it up and the succes code is 0.

    Will update this as soon I'm done with my school work. Tonight this update will be available.


     
  25. Offline

    PierreLouis

    Ok, good to hear that you know what the error is!
     
  26. Offline

    WMisiedjan

    Already updated! It didn't require much code changes so.. Already fixed it.

    Hope it works now :)
     
  27. Offline

    PierreLouis

    YAY!
    Testing...

    EDIT: Do I download from the v1.8.1 link?
     
  28. Offline

    WMisiedjan

    @PierreLouis:
    What do you mean?
    Download link for v1.8.1 is in main post?
     
  29. Offline

    PierreLouis

    Where did you post the fix? Is the download link for v1.8.1 it?

    I tried with v1.8.1. I get this on my Console and nothing on my side that I can see like an opening window or anything.

    Console:
    Code:
    2/2/11 5:10:08 PM    [0x0-0x27c27c].com.apple.JarLauncher[5002]    Starting BukkitToDate Launcher version 0.2
    2/2/11 5:10:08 PM    [0x0-0x27c27c].com.apple.JarLauncher[5002]    Loading Plugin Settings...
    2/2/11 5:10:08 PM    [0x0-0x27c27c].com.apple.JarLauncher[5002]    Server is Up-To-Date at build #218
    2/2/11 5:10:11 PM    com.apple.launchd[1]    (org.postfix.master[5005]) Exited with exit code: 1
    2/2/11 5:10:11 PM    com.apple.launchd[1]    (org.postfix.master) Throttling respawn: Will start in 9 seconds
    2/2/11 5:10:21 PM    com.apple.launchd[1]    (org.postfix.master[5006]) Exited with exit code: 1
    2/2/11 5:10:21 PM    com.apple.launchd[1]    (org.postfix.master) Throttling respawn: Will start in 9 seconds
    2/2/11 5:10:31 PM    com.apple.launchd[1]    (org.postfix.master[5012]) Exited with exit code: 1
    2/2/11 5:10:31 PM    com.apple.launchd[1]    (org.postfix.master) Throttling respawn: Will start in 9 seconds
    2/2/11 5:10:41 PM    com.apple.launchd[1]    (org.postfix.master[5015]) Exited with exit code: 1
    2/2/11 5:10:41 PM    com.apple.launchd[1]    (org.postfix.master) Throttling respawn: Will start in 9 seconds
    2/2/11 5:10:51 PM    com.apple.launchd[1]    (org.postfix.master[5016]) Exited with exit code: 1
    2/2/11 5:10:51 PM    com.apple.launchd[1]    (org.postfix.master) Throttling respawn: Will start in 9 seconds
    2/2/11 5:11:01 PM    com.apple.launchd[1]    (org.postfix.master[5017]) Exited with exit code: 1
    [ETC]
     
  30. Offline

    WMisiedjan

    Oh yeah, I uploaded wrong version, Uploading new one now..

    Googled some things about running a jar within a jar. And I think I have a solution for all our problems. Will be updating as soon as possible.

    Edit: DEV INFO:
    Got the launcher working to launch craftbukkit.jar WITHIN should work in theory in every OS that supports java.

    Only problem now is the restarter. Need to do some experiments with that.

    Found a alternative method for restarting the server. Using exit code 201 to detect a restart is needed, And used a new setting (switchto), To detect a switchto a specific build or an update to a build.
    Need to fix some bugs then ready for release.
     

Share This Page