4

How can I write a batch script (Windows) that will download the latest Craftbukkit Build and put it in a certain directory whenever I run it?

So has anyone overcome the problem of updating Bukkit without a lot of hassle?

PS: Bonus points to anyone that can automatically update plugins too.

  • you'll need an application to do the actual download, like curl/wget on 'nix systems. and it should probably be on serverfault. – ewanm89 Jul 2 '12 at 19:47
  • 2
    dl.bukkit.org/latest-rb/craftbukkit.jar is always latest recommended. – ewanm89 Jul 4 '12 at 12:35
  • I know, but I like the dev builds better. However, is there really any difference between them? – user28379 Jul 4 '12 at 22:56
  • 2
    dev builds are generated every night (though July the 4th seems missing, possibly it didn't successfully build), there is no guarantee it'll even run let alone the plugins will work (dl.bukkit.org/latest-dev/craftbukkit-dev.jar). These are then promote these to beta for testing when the feel like it, things are still likely to be broken, but it'll at least run (dl.bukkit.org/latest-beta/craftbukkit.jar). Finally after enough testing they promote these to recommended, for production servers this is recommended (dl.bukkit.org/latest-tb/craftbukkit.jar) – ewanm89 Jul 5 '12 at 13:38
  • 1
    Thanks, seeing how nobody else answered this question, you could post this as an answer and I will accept it. Haven't had problems with the dev builds yet though. – user28379 Jul 5 '12 at 16:13
0

On linux I'm using wget and you can use it too even on Windows, try i.e. "complete package ..." from here. Then write some batch file which you can call by Windows task scheduler (don't forget to -O wget parameter). For this automatic updating use only RB (recommended build), anyway you must restart your server. For plugins updating you can call reload from the server or restart again (see this).

|improve this answer|||||
  • btw. I'm using just my downloaders and applying plugins and server manually - for better control... – dmnc Jul 11 '12 at 21:06
0

Well, there is a plugin if I recall correctly for that. Something like this: Craft bukkit up to date.

The video here, has a Windows batch script for updating the server:Auto update bukkit

|improve this answer|||||
  • 1
    Thanks, I will check it out. As for CraftBukkitUptoDate, I have tried thAt, but it does not work well with some batch scripts that I engineered. How about plugins? – user28379 Jul 11 '12 at 17:57
  • pff, I don't think you can program that, I maybe can write a program that gets the latests version of bukkit, I will see. When its ready, I will let you know something, so you can use it ;). – hasharc Jul 11 '12 at 18:11
  • Found something, its an autoupdater: code.google.com/p/panychulla-linux/source/browse/trunk/bukkit/… but you will need to compile it. – hasharc Jul 11 '12 at 18:23
  • If I understand the code correctly, it should download a new version. – hasharc Jul 11 '12 at 18:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy