Inactive [ADMN] CraftBukkitUpToDate v2.6.7 - Keep your Server/Plugins up to date [1185]

Discussion in 'Inactive/Unsupported Plugins' started by NoFear13, Feb 20, 2011.

  1. After the plugin detect a new build, it download to bukkit_update in the main-Folder. After that you must stop your server and copy the craftbukkit-0.0.1-SNAPSHOT.jar from bukkit_update to your main-Folder.​
    After Version 1.4 I support plugins if a new version found it download to build_update/plugins. After that stop your server and copy/move the new files to your plugin-Folder

    This is no autoupdater, it only download the new Version do the update-Folder, the user have to copy the files. On this way, he know which plugins he update and can check if he like to update.

    I recommend to save your old craftbukkit-0.0.1-SNAPSHOT.jar/plugin before update. Not all builds from CraftBukkit work correctly.

    For more infos and download: http://dev.bukkit.org/server-mods/craftbukkituptodate/

    Features:
    • Download the newest build to build_update
    • Config-File in plugins/CraftBukkitUpToDate/CraftBukkitUpToDate.properties
      • to enable/disable automatic download
      • choose between stable or recommended Builds
      • set craftBukkitName (Default: craftbukkit-0.0.1-SNAPSHOT.jar)
      • deactivate pluginLog
      • deactivate craftBukkitUpdateCheck
      • blacklist to add Plugins, you don't want to update (blacklist=test1.jar;test2.jar)
      • deactivate automatic pluginUpdateCheck
      • deactivate serverLog if new Version available (broadcastOnlyToOps=true)
    • Check for update in a configurable period
      Configurable in CraftBukkitUpToDate.properties in milliseconds lowest value is 300000 (5 min), standard is 1800000 (30 min)
    • Broadcast if new update available (To all Ops, or via Permissions).
      Configurable in CraftBukkitUpToDate.properties default value is true
    • Command to download every build you like. Example: If you like to download build 400 you type /craftbukkituptodate download 400 or /uptodate download 400
    • Command to show changelog for BukkitBuild. Example: If you like to show changelog for Build 431 type /craftbukkituptodate changelog 431 or /uptodate changelog 431
    • Command to start plugin-Check, to start type /uptodate plugin
    • Command to start the update-Check, to start type /uptodate update
    • All commands work also at Server-Console type only craftbukkituptodate or uptodate without /
    • Automaticly download new updates for Plugins
      • Download new updates in build_update/plugins
      • plugin.properties with links to the plugins, this one download automaticly if a new one at my server
    • Permissions:
      Permissions/GroupManager is optional else only ops can use the commands.
      Available permission nodes are (case sensitive):
      • craftbukkituptodate.broadcast - these users get a message if a new build available
      • craftbukkituptodate.download - these users can use download-Command
      • craftbukkituptodate.changelog - these users can use changelog-Command
      • craftbukkituptodate.plugin - these users can use plugin-Command
      • craftbukkituptodate.update - these users can use the update-Command
      • Pail Gui-Support check Thread for more infos
    For Linux-User, if you like to move your new plugins automaticly, try the script from Myx0x3:

    http://forums.bukkit.org/threads/ad...ugins-up-to-date-400.5026/page-10#post-122380
    or for more features use the one from Tealk:
    http://forums.bukkit.org/threads/linux-server-startscript.1427/

    Planned Features:
    • Nothing
    Known Issue:

    • Nothing
    Changelog (All times UTC+1):
    Check http://dev.bukkit.org/server-mods/craftbukkituptodate/ for the newest file-Changelog
    Show Spoiler

    Version 2.6.6 (31.08.2011 19:00)
    Version 2.6.5 (30.08.2011 18:30)
    Version 2.6.4 (29.08.2011 20:20)

    • Changed the log-Messages, so that the user understand that the author have to add his plugin to dev.bukkit.org.
    Version 2.6.3 (29.08.2011 00:20)

    • Bug: zip-Files updated every time
    • Bug: Fix for new pail-Version
    Version 2.6.2 (28.08.2011 20:30)

    • Update for dev.bukkit.org
    • Plugin-Manager for pail
    Version 2.6.1 (10.08.2011 18:10)

    • Fixed Nullpointer, sry for this issue.
    Version 2.6.0 (09.08.2011 23:15)

    • Added Pail Gui-Support
    • CraftBukkit-Update-Check now threaded, because with 7 MB it can take a little bit to update
    Version 2.5.9 (27.07.2011 21:50)

    • Fix: Delete the Quotes in the Essentials-Filenames
    Version 2.5.8 (21.07.2011 22:15)

    • Fix: Can't connect to ci-b.bukkit.org-Error
    Version 2.5.7 (13.07.2011 22:15)

    • Fix: If broadCastPeriod not parsable set it to default value. Thanks to Torner92 for the bug-Report.
    Version 2.5.6 (16.06.2011 23:15)

    • Implement If-Modified-Since, thanks to Captain Chaos for the tip. This should remove the bandwith-Problem of some Plugin-Authors, let me know if it doesn't work.
    Version 2.5.5 (27.05.2011 23:15)

    • Little Bugfix for robin0van0der0v new xml.
    Version 2.5.4 (26.05.2011 22:15)

    • Little Bugfix
    • Some changes for robin0van0der0v new xml. @robin0van0der0v: Thanks for your work
    Version 2.5.3 (06.05.2011 20:15)

    • Fixed a little bug, with the new XML/RSS-Update-Check
    Version 2.5.2 (02.05.2011 21:55)

    • Add Version to XML-Update-Check
    • Add Description to RSS-Update-Check
    Version 2.5.1 (20.04.2011 20:45)


    • Automatic Plugin-Update at startup only every 6 hours
    • Manual Plugin-Update only every 60 minutes
    Version 2.5.0 (18.04.2011 22:25)

    • Logger changed
    Version 2.4.9 (10.04.2011 10:15)

    • Plugin-Update only every 60 minutes, also after a restart.
    • Some little Bugfixes
    Version 2.4.8 (09.04.2011 22:50)

    • Add new /uptodate update - Command to start update-Process manual
    • Add new option useUserPluginPropertiesFirst to set another priority for the userplugin.properties
    Version 2.4.7 (07.04.2011 19:00)

    • Bugfix if filename not in the URL and not a jar
    • Changed the Bukkit-Build-URL to ci-b.bukkit.org
    Version 2.4.6 (06.04.2011 18:30)

    • Better Exception-Handling if the rss-Feed, xml, txt-File or the properties-File is wrong
    Version 2.4.5 (05.04.2011 20:15)

    • Bugfixes if redirect and the new URL contains a space
    • Changed the UserAgent to CraftBukkitUpToDate
    Version 2.4.4 (03.04.2011 17:10)

    • Little Bugfix if createCheckFiles=true
    Version 2.4.3 (30.03.2011 21:55)

    • New option usePermissions to deactivate permissions-Support
    Version 2.4.2 (30.03.2011 21:02)

    • A little change for better Permissions-Setup
    Version 2.4.1 (30.03.2011 19:06)

    • Changes for the newest recommended Build
    Version 2.4.0 (29.03.2011 22:30)

    • Added txt, xml and properties-Support
    Version 2.3.0 (28.03.2011 22:30)

    • php-Fix
    Version 2.2.3 (28.03.2011 20:30)

    • Little Bugfix
    • Update-Check only every hour
    Version 2.2.2 (28.03.2011 18:15)

    • Killed the Version-Number in the jar-File-Name
    Version 2.2.1 (25.03.2011 22:45)

    • Some Bugfixes
    • New option to disable serverLog if new Update available
    • New option to disable automatic plugin-Update
    Version 2.2.0 (25.03.2011 22:00)

    • Parallel update-Checks (80% faster now)
    • Some other changes to support the update-Script from Tealk
    • New alias cbutd
    Version 2.1.6 (25.03.2011 20:40)

    • Some other changes to support the update-Script from Tealk
    • Changed the Permissions-Setup
    Version 2.1.5 (23.03.2011 23:00)

    • Some changes to support the update-Script from Tealk
    Version 2.1.4 (23.03.2011 19:00)

    • Fixed that zip and tar.gz-Files updated every time
    Version 2.1.3 (21.03.2011 21:30)

    • RSS-Feed now supported check Or use RSS-Part to check how to implement it.
    Version 2.1.2 (16.03.2011 23:10)

    • Changed the updateLogic for CraftBukkit so I don't need longer the check-Files you can delete it if you like. Thanks to Pluckerpluck for the tip.
    Version 2.1.1 (13.03.2011 23:35)

    • A little bugfix for the new userplugin.properties
    Version 2.1 (12.03.2011 23:00)

    • userplugin.properties for the users to add their own plugins.
    Version 2.0.5 (11.03.2011 20:30)

    • bit.ly-Fix
    • Wish you something Update 3 alias Maddin-Update;): Changed new pluginLog.
    Version 2.0.4 (09.03.2011 22:45)

    • github-Fix, next step is the fix for the php-problem
    • blacklist, to add plugins you don't want update.
    Version 2.0.3 (07.03.2011 18:15)

    • Added a new Option to deactivate craftBukkitUpdateCheck
    Version 2.0.2 (05.03.2011 10:40)

    • Little Bugfix, if pluginLog = false
    Version 2.0.1 (04.03.2011 19:50)

    • Download new Version only ones, if you didn't like to update
    • Smarter Log if ci.bukkit.org down
    Version 2.0 (02.03.2011 21:40)

    • Method to differentiate between Plugins with the same name
    Version 1.9.3 (02.03.2011 18:25)

    • Wish you something Update 2;): Changed new pluginLog.
    • Update for other sources (zip), if Server doesn't send modificationTimestamp
    Version 1.9.2 (01.03.2011 21:40)

    • Wish you something Update;): Added a new Option to change pluginLog.
    Version 1.9.1 (01.03.2011 19:10)

    • Little Bugfix
    • New Update-Message
    Version 1.9 (28.02.2011 22:10)

    • Removed one typos
    • New Command to start Plugin-Update
    • Removed stableBuild-Config, nobody need this
    • Add CraftBukkitName-Config
    Version 1.8 (26.02.2011 22:10)

    • Permissions-Support
    • Smaller messages
    Version 1.7 (26.02.2011 17:11)

    • Some little Bugfixes for the new Plugin-Links
    • Performance-Tuning
    Version 1.6 (24.02.2011 20:43)

    • Better Update-Check
    • Plugin-Update-Check starts after 10 Seconds
    • Configurable Download-Folder (Example: If you like to Download to plugin-Dir write: plugins/CraftBukkitUpToDate/downloads/)
    Version 1.5 (23.02.2011 21:55)

    • Plugin-Update-Check now threaded, so the Server start without waiting for it.
    Version 1.4 (23.02.2011 21:15)

    • Plugin-Support
    Version 1.3 (23.02.2011 19:53)

    • Config if you like to download only RecommendBuild (Default: false)
    • Config if you like to download latestStableBuild (Default: true), no Idea if i need this or remove it in a future release
    • Command to download every Build, for Howto look at Features
    • Command to look at changelog
    • Removed stupid constructor
    Version 1.2 (20.02.2011 23:07)

    Version 1.1 (20.02.2011 19:26)

    • Check for update in a configurable period
    • Send message to all online ops (configurable)
    Version 1.0 (20.02.2011 10:55)

    • Release-Version
     
    nath30, xybre, vrox and 16 others like this.
  2. Offline

    xZise

    Hello NoFear13,
    wouldn't it be easier for the plugin developers if they could provide a link via plugins.yml, like:

    Code:
    name: xWarp
    version: 2.6.0-hmod b1
    main: me.taylorkelly.mywarp.MyWarp
    authors:
      - 'xZise'
      - 'tkelly'
    commands:
      xwarp:
        description: Warp commands
        usage: /<command> help - Displays the help for xWarp
    parser: Quoted


    But how could you test if a version is newer? I mean the version system is not standardized. And what are the header informations?


    Fabian

    PS: And btw you could add the link ;)
     
  3. Offline

    xPaw

    @xZise: He checks if the file exists on web server (i think he does) first, and then he compares the file checksums or size of it (im not sure, didn't see), and download if needed
     
  4. Offline

    xZise

    But how do you a checksum without download the file ;) I don't know how HTTP(S) could support this.

    Fabian
    --- merged: Feb 28, 2011 4:04 PM ---
    Yerks the code tag is quite buged... So I try it without showing an example (before it again break my post with my plugin.yml). My suggestion would be to add a value where the link to the newest version is given.

    Fabian
     
  5. Offline

    bekvon

  6. If each Plugin-Developer must change his plugin.yml to support my Plugin it's difficult for him, also I test each link because I have to change the github-Links, because github redirect via a from Java unsupported method.

    Via HTTP(S) you can check the fileHeader, because the Browser need the exact FileSize to download the file (For that reason your Browser now the exakt FileSize and how long it took, to download it). But the FileSize is only my fallback, the most webservers sends the last modification timestamp for a file so I can check if the file at the webserver newer than yours.

    What's the advantage of check the plugin.yml? Also it took longer to open each jar and check for a Download-Link. With my method I must only check a Map with all Download-Links, what more faster.

    P.S. I can't find your Download-Link

    Added. Thank you.
     
  7. Offline

    Jandalf

    i have a missspelling: CButD says CraftBukkit is up to date, when its outdated but the new jar is in the updates folder. i think it should be, there is an update for CB its in your updates folder, or something like that
     
  8. Offline

    Playingcs

    Code:
    2011-02-28 18:52:00 [WARNING] CraftBukkitUpToDate a Error:
    java.io.IOException: Server returned HTTP response code: 503 for URL: http://ci.bukkit.org/job/dev-CraftBukkit/promotion/latest/Recommended/api/xml
            at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1403)
            at de.nofear13.craftbukkituptodate.CraftBukkitUpToDateHelper.getBuild(CraftBukkitUpToDateHelper.java:166)
            at de.nofear13.craftbukkituptodate.CraftBukkitUpToDateHelper.updateCraftBukkit(CraftBukkitUpToDateHelper.java:474)
            at de.nofear13.craftbukkituptodate.CraftBukkitUpToDate.onEnable(CraftBukkitUpToDate.java:68)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:140)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:426)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:187)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:79)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:60)
            at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:198)
            at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:189)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:77)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:176)
            at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:362)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:347)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:253)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    
    503 is Service Unavailable
     
  9. Yes, if the Service not available this Exception thrown, but I catch it and there's no need to worry about that. If this a Problem for you, I can catch the Exception, without sending a message.

    Yes, I can add this if you need, I thought it's no problem, if someone don't like to use the new build.
     
  10. Offline

    Jandalf

    :D i dont ned this, but people could forget their new CB build
     
  11. Offline

    Maddin

    A bad server mod deleted my world :mad: i want a stable build and i doesnt download one... Can somebody tell how the properties have to work to just download the latest stable release build... NO DEV BUILD!
     
  12. I don't know what you want if you want the recommendBuild open CraftbukkitUpDate.properties and set recommendedBuild=true, else if you want the latestStableBuild set recommendedBuild=false

    You know that the fileSystem changed with Minecraft 1.3 your normal world shout converted automaticly but the other worlds, if you use the Multiworld-Feature doesn't convert automaticly, look at the Multiverse-Plugin-Page:
    http://forums.bukkit.org/threads/mi...-4-netherportals-to-multiple-worlds-400.3707/
     
  13. Offline

    Maddin

    It converted fine but i heard that the latest stable build is 440 but it downloaded something about 470 and the world is gone :(
     
  14. Set recommendedBuild=true, this download only the recommendedBuilds. I'm sry for your issues, I hope you have a backup. I will use the latest build (478) and check if my world also destroyed.
     
  15. Offline

    Maddin

    Because this was so: I downloaded a version that supports 1.3. I joined and fell out of the map an died.... Now i made build 470 and i started on a new world...
    And thanks for update ^^


    ....and i had no backup :((((((((((
     
  16. I tested the new Build (478) some plugins didn't work anymore but my world is fine. Sry for your problems, I hope it isn't very aggravating for you. Can it be a problem from one of your other plugins?

    Edit: If you have your old world, try to delete your (Player-Name).dat under world/players, then you shout resporn at the Sporn-Point. Please save it before, because after that your Inventory is blank.
     
  17. Offline

    Maddin

    I dont need to save when i died in the old build i lost all :p ill try later
     
  18. Added. In the CraftBukkitUpToDate.properties
    set
    craftBukkitName=craftbukkit-0.0.1-SNAPSHOT.jar
    to
    craftBukkitName=craftbukkit.jar
     
  19. Offline

    Bobby_Bonsai

  20. Offline

    Jandalf

    thank u for this great plugin:)
     
  21. Added. Thank you.
    They not hardcoded, i add them to a plugin.properties who downloaded at each Server-Startup. This is to make sure that all ok, what if you change your source, then repository.yml goes to the old one, the users must first download your new version before he can use the autoupdater again, with my Method it download first the new plugin.properties with the new link and than make a Update-Check. Also I have at the moment big Problems with github which redirected in a unsupported method, so I must rewrite every link. Or what if the plugin-Author use a nonstatic link, because he didn't notice what he have to do.

    If I can resolve the github-Problem, I think about to support two methods for the Plugin-Update-Check.

    But in my first Version I looked for a simple and fast way to add new Plugins.
    --- merged: Feb 28, 2011 10:53 PM ---
    Added, type /uptodate plugin, to start the Plugin-Check.
     
  22. Offline

    Playingcs

    Thanks! And the Server-Check is automatic right? And broadcasted when found
     
  23. Yes it check every half hour if there a new update and broadcast to each Op or somebody who have permission, if a new available+Server-Log.
     
  24. Offline

    TOAST7312

    Code:
    2011-02-28 21:40:55 [INFO] CButD: Plugin-Update-Check started
    
    2011-02-28 21:40:56 [INFO] No source for dynmap.jar ask the Author to give me on
    e
    2011-02-28 21:41:17 [INFO] Essentials.jar can't be checked
    2011-02-28 21:41:17 [INFO] Essentials.jar changed, try to download the new
    2011-02-28 21:41:17 [INFO] Not able to update Essentials.jar check if URL http:/
    /earth2me.net/bukkit/Essentials.jar correct. If not ask the Author to give me th
    e new one
    2011-02-28 21:41:38 [INFO] EssentialsBan.jar can't be checked
    2011-02-28 21:41:38 [INFO] EssentialsBan.jar changed, try to download the new
    2011-02-28 21:41:38 [INFO] Not able to update EssentialsBan.jar check if URL htt
    p://earth2me.net/bukkit/EssentialsBan.jar correct. If not ask the Author to give
     me the new one
    2011-02-28 21:41:59 [INFO] EssentialsChat.jar can't be checked
    2011-02-28 21:41:59 [INFO] EssentialsChat.jar changed, try to download the new
    2011-02-28 21:41:59 [INFO] Not able to update EssentialsChat.jar check if URL ht
    tp://earth2me.net/bukkit/EssentialsChat.jar correct. If not ask the Author to gi
    ve me the new one
    2011-02-28 21:42:20 [INFO] EssentialsEco.jar can't be checked
    2011-02-28 21:42:20 [INFO] EssentialsEco.jar changed, try to download the new
    2011-02-28 21:42:20 [INFO] Not able to update EssentialsEco.jar check if URL htt
    p://earth2me.net/bukkit/EssentialsEco.jar correct. If not ask the Author to give
     me the new one
    2011-02-28 21:42:41 [INFO] EssentialsGod.jar can't be checked
    2011-02-28 21:42:41 [INFO] EssentialsGod.jar changed, try to download the new
    2011-02-28 21:42:41 [INFO] Not able to update EssentialsGod.jar check if URL htt
    p://earth2me.net/bukkit/EssentialsGod.jar correct. If not ask the Author to give
     me the new one
    
    either that or the links to essentials are no longer working
    not sure
     
  25. Offline

    Kevin Forte

    I'm not entirely sure, but I think this might not be working correctly; it updated me to 450 and then wasn't updating any further (I learned that CB was up to like 475 or something) and so I tried wiping the bukkit_update directory and it redownloaded CB 440, any reason for it going backwards?
     
  26. Offline

    Daikage

  27. btw did you found out why it stops at the failed build of craftbukkit ? mine is still on 458 and if I download the newest stabel manual your script is downgrading :S
     
  28. Offline

    Jandalf

  29. You are sure? I test it and it works fine, can you send me a Screenshot from your build_update-Folder?
    Added.
     

Share This Page