[INACTIVE][ADMN] BukkitUpdater v0.3 - Plugin Manager for CraftBukkit [670]

Discussion in 'Inactive/Unsupported Plugins' started by KokaKiwi, Mar 3, 2011.

  1. Offline

    KokaKiwi

    BukkitUpdater - Plugin Manager for CraftBukkit:
    Version: v0.3

    BukkitUpdater is a plugin manager which allow you to control plugins like packet manager 'apt' for Linux.

    Plugins list is based on decentralized plugin's repositories (XML files), which can be personalised in config.yml file.

    A XML plugin's repository should be written as follows:

    Code:
    <plugin>
        <id>bukkitupdater</id>  <!-- Plugin ID, must be in lower case - REQUIRED -->
        <name>BukkitUpdater</name> <!-- Plugin name, must be the same name that plugin's description show - REQUIRED -->
        <version>0.1</version> <!-- Version, must be in format "NUMBER.NUMBER.etc..." NO LETTERS! - REQUIRED -->
        <author>KokaKiwi</author> <!-- Author, not used but - REQUIRED -->
        <url>http://github.com/KokaKiwi/BukkitUpdater</url> <!-- Plugin website URL - OPTIONAL -->
        <file-type>archive</file-type> <!-- File type (jar for .jar, archive for .zip) Tar.Gz not implemented - REQUIRED -->
        <file-url>http://kokakiwi.github.com/test.zip</file-url> <!-- Plugin file URL - WARNING : Don't use https:// in file URL, BukkitUpdater couldn't check them for the moment - REQUIRED -->
        <dependencies> <!-- Plugin dependencies - OPTIONAL -->
            <dep id="kiwiplugin" version="1.1" /> <!-- Plugin dependency, "id" is dependency's ID, version not used - OPTIONAL -->
        </dependencies>
        <website>http://www.minerepo.tk</website>
        <description>Bukkit plugins and core updater</description>
        <bukkit-build>670</bukkit-build> <!-- CraftBukkit Core Build dependency - OPTIONAL -->
    </plugin>
    A website is in preparation. It will allow all plugins developers to register their plugins to an "official" repository.

    Features:
    • Based on decentralized plugin's repositories (XML files)
    • Allow you to install a plugin directly from console or IG
    Commands: /updater <subcommand> <args> (Works in console too, without "/")

    • /updater update : Update all installed plugins
    • /updater check : Check updates, but didn't download them
    • /updater install <pluginID> : Install a plugin defined by his ID
    • /updater remove <pluginID> : Remove a plugin defined by his ID
    • /updater purge <pluginID> : Remove a plugin and delete his data folder (usually "plugins/[pluginName]")
    • /updater enable <pluginID|pluginName> : Enable a plugin
    • /updater disable <pluginID|pluginName> : Disable a plugin
    • /updater load <pluginName> : Load a jar file located at "plugin" folder with name "[pluginName].jar"
    • /updater info <pluginID> : Get infos about a plugin
    Download BukkitUpdater
    Source Code

    Changelog:
    Show Spoiler

    Version 0.3
    • Added Info command
    • Improved List command
    • Added website and description field to plugin definition in XML file
    • Some minors modifications
    Version 0.2.3
    • Added eisental fixes and adding :)
    Version 0.2.2
    • Bugs fixes
    Version 0.2.1
    • Quick changes to fix somes urgent bugs.
    • Changed repository to MineRepo repository
    Version 0.2
    • Added "/updater list" command (only installed subcommand is on, "avalailable" is unimplementable, too long if there is a lot of plugins)
    • Added "http://bukkitupdater.tk/updateList.xml" to default repositories. You must delete your config.yml file to update it!
    Version 0.1.1
    • Added local repository
    • Fixed somes bugs
    Version 0.1
    • First release, with some bugs that will be fixed soon

    ToDo:
    • Add a cache system (to prevent error during loading update lists)
    • Add dependencies versions support (some plugins can't work with certains plugins version)
    • Add plugin files cache, for backup old plugins versions (if new version crash the server)
     
    ksevelyar and cobra1162 like this.
  2. Offline

    KokaKiwi

    NEW UPDATE : v0.2.3 !
    Added eisental fixes and adding, thanks to him :)

    Bug fixed, I've failed my plugin build x)
     
  3. Offline

    Oscarius

    I don't understand. Wouldn't it be nice with a feature that not only downloads the new version of a plugin, but also installs it? It would surely make updating plugins much faster and smoother for me.
     
  4. Offline

    KokaKiwi

    Yes, that could be a good feature, I'll add this in next version :)
     
    Oscarius likes this.
  5. Offline

    ksevelyar

  6. Offline

    Plague

    Do not use a plus sign in the RB version, you should state the latest tested version.
     
  7. Offline

    NetMAx

  8. Offline

    eisental

    @NetMAx What exactly should I do when I release a new version of my plugins? I don't see any way to update already existing plugins.

    I think it would be useful to have a <website-url> tag in the xml file. Either that, or a description text of some kind. I like to browse the available plugins from the server console but there's no way to know what each plugin is doing without searching in bukkit.org.
     
  9. Offline

    NetMAx

    Currently minerepo.tk has a crawler implemented (That means if your plugin is listed in minerepo the new plugin version gets listed automatically).

    The following features are on the roadmap for minerepo(available this weekend):
    • New Field Short Description (raw text)
    • New Field Long Description (bbcode formated text)
    • Rating (1-5 5 is the best ;-)
    • Website Url (Website of the Author )
    I am open for any comment regarding improvements.


    //Edit:
    I will include the description information from the plugin.yml into minerepo:
    Code:
    name: Template
    main: de.mrchick.bukkit.template.Template
    version: 0.1
    author: MrChick
    description: This description is a stub.
    I will use a tag called "description" to include the description information.


    This update gets released tomorrow ;-)
     
  10. Offline

    eisental

    @NetMAx Great! Now if these fields are also added to the repo xml file it will be perfect.
     
  11. Offline

    NetMAx

    sure they get added ;-)
     
  12. Offline

    KokaKiwi

    NEW UPDATE : v0.3

    Changelog:
    • Added info command
    • Improved list command
    • Added website and description field to plugin definition in XML file
    • Some minors modifications
    Don't forget to register your plugin to MineRepo : http://minerepo.tk :)
     
  13. Offline

    Beaverbeliever

    Using CB670 and CB677
    During startup:

    Code:
    2011-04-16 17:51:58 [INFO] BukkitUpdater : Using Permissions v2.5.5
    2011-04-16 17:51:58 [INFO] BukkitUpdater : Updating...
    2011-04-16 17:52:03 [WARNING] BukkitUpdater : Error during getting last Bukkit build number.
    2011-04-16 17:52:03 [SEVERE] java.net.ConnectException: Connection refused: connect
    2011-04-16 17:52:03 [SEVERE]     at java.net.PlainSocketImpl.socketConnect(Native Method)
    2011-04-16 17:52:03 [SEVERE]     at java.net.PlainSocketImpl.doConnect(Unknown Source)
    2011-04-16 17:52:03 [SEVERE]     at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    2011-04-16 17:52:03 [SEVERE]     at java.net.PlainSocketImpl.connect(Unknown Source)
    2011-04-16 17:52:03 [SEVERE]     at java.net.SocksSocketImpl.connect(Unknown Source)
    2011-04-16 17:52:03 [SEVERE]     at java.net.Socket.connect(Unknown Source)
    2011-04-16 17:52:03 [SEVERE]     at java.net.Socket.connect(Unknown Source)
    2011-04-16 17:52:03 [SEVERE]     at sun.net.NetworkClient.doConnect(Unknown Source)
    2011-04-16 17:52:03 [SEVERE]     at sun.net.www.http.HttpClient.openServer(Unknown Source)
    2011-04-16 17:52:03 [SEVERE]     at sun.net.www.http.HttpClient.openServer(Unknown Source)
    2011-04-16 17:52:03 [SEVERE]     at sun.net.www.http.HttpClient.<init>(Unknown Source)
    2011-04-16 17:52:03 [SEVERE]     at sun.net.www.http.HttpClient.New(Unknown Source)
    2011-04-16 17:52:03 [SEVERE]     at sun.net.www.http.HttpClient.New(Unknown Source)
    2011-04-16 17:52:03 [SEVERE]     at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
    2011-04-16 17:52:03 [SEVERE]     at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
    2011-04-16 17:52:03 [SEVERE]     at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
    2011-04-16 17:52:03 [SEVERE]     at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    2011-04-16 17:52:03 [SEVERE]     at org.kokakiwi.bukkitupdater.updater.BUpdater.getBuildNumber(BUpdater.java:64)
    2011-04-16 17:52:03 [SEVERE]     at org.kokakiwi.bukkitupdater.updater.BUpdater.update(BUpdater.java:188)
    2011-04-16 17:52:03 [SEVERE]     at org.kokakiwi.bukkitupdater.BukkitUpdater.onEnable(BukkitUpdater.java:55)
    2011-04-16 17:52:03 [SEVERE]     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
    2011-04-16 17:52:03 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:578)
    2011-04-16 17:52:03 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:216)
    2011-04-16 17:52:03 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:115)
    2011-04-16 17:52:03 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:93)
    2011-04-16 17:52:03 [SEVERE]     at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
    2011-04-16 17:52:03 [SEVERE]     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
    2011-04-16 17:52:03 [SEVERE]     at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
    2011-04-16 17:52:03 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
    2011-04-16 17:52:03 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    And then when I issue any /updater command:

    Code:
    2011-04-16 17:55:06 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'updater' in plugin BukkitUpdater v0.1
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:254)
        at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:626)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:589)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:583)
        at net.minecraft.server.Packet3Chat.a(SourceFile:24)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    Caused by: java.lang.NoSuchMethodError: org.bukkit.command.CommandSender.isPlayer()Z
        at org.kokakiwi.bukkitupdater.commands.UpdateCommand.execute(UpdateCommand.java:18)
        at org.kokakiwi.bukkitupdater.BukkitUpdater.onCommand(BukkitUpdater.java:108)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    From what it looks like, it doesn't work. It also issues a Internal Error in-game.
     
  14. Offline

    KokaKiwi

    That's because you use an outdated version of BukkitUpdater(v0.1).

    Use v0.3 instead : http://dl.dropbox.com/u/13100583/BukkitUpdater.jar ;)
     
  15. Offline

    Beaverbeliever

    Alright it works now, thanks!
     
  16. Offline

    pagan0ne

    bug:

    Code:
    01:27:07 [INFO] BukkitUpdater : Checking updates from repository in cache...
    01:27:07 [INFO] BukkitUpdater : New version detected for 'IllegalName' (new version: 1.3)
    01:27:07 [WARNING] BukkitUpdater : Plugin 'IllegalName' require CraftBukkit build 740 and you have build git-Bukkit-0.0.0-719-ga475842-b755jnks (MC: 1.5_02)
    01:27:07 [WARNING]                 You should update your server core.
    01:27:07 [INFO] BukkitUpdater : Done checking for updates.
    
    as you can see it says the plugin requires version 740, and it says i have 755... (b755jnks). It gave me the SAME error when i was on 740 as well (b740jnks). I updated to a dev build for another plugin and to see if it would resolve the error here. It doesnt cause any issues atm, but i just wanted to let you know about it. If you need more info, i will be happy to provide it.
     
  17. Offline

    Plague

    considered inactive
     
  18. Offline

    Alkoforumm

    Why is this thread in inactive... ?
    KokaKiwi please change number in the thread name to 740 because that works with craftbukkit 740..
     
    DaddyCool64 likes this.
  19. Offline

    ironcladdestiny

    Will anyone pick up this project if KokaKiwi doesn't show up? Bukkit needs this.
     
  20. Offline

    eisental

    I'll be maintaining my own fork of the updater in case he's gone and would probably try to improve some things when I have the time. No need to worry as long as minerepo.tk keeps working :p
    Btw, bukkit was supposed to have its own updater. I hope it's still going to happen...
     
  21. Offline

    NetMAx

    minerepo.tk will stay up forrever and it is geting more and more features ;-)

    On the weekend the plugin author controll panel gets released.
    Main Feature:
    Authors get more controll over their plugins :cool:
     
  22. Offline

    eisental

    That's good news. Thanks.
     
  23. Offline

    Jdbye

    This plugin is nice, but it thinks FakePermissions (EssentialsGroupBridge.jar) is normal Permissions (the names in plugin.yml are the same) any way you can solve this so I don't accidentally replace FakePermissions?
     
  24. Offline

    DaddyCool64

    Code:
    2011-06-07 02:43:27 [WARNING] BukkitUpdater : Error during downloading 'http://www.kokabsolu.com/updateList.xml'
    2011-06-07 02:43:27 [WARNING] java.io.IOException: Server returned HTTP response code: 403 for URL: [URL]http://www.kokabsolu.com/updateList.xml[/URL]
    2011-06-07 02:43:28 [WARNING] BukkitUpdater : Error during parsing repository '1307407407592.19732.updateList.xml'
    2011-06-07 02:43:28 [WARNING] java.io.FileNotFoundException: /var/www/clients/client2/web1/web/minecraft/plugins/BukkitUpdater/cache/1307407407592.19732.updateList.xml (No such file or directory)
    2011-06-07 02:43:28 [INFO] BukkitUpdater : Checking updates from repository in cache...
    2011-06-07 02:43:28 [INFO] BukkitUpdater : New version detected for 'FenceStack' (new version: 1.14)
    2011-06-07 02:43:28 [INFO] BukkitUpdater : Plugin 'TeslaCoil' isn't in loaded repositories
    2011-06-07 02:43:28 [INFO] BukkitUpdater : New version detected for 'Permissions' (new version: 3.1.1)
    2011-06-07 02:43:28 [INFO] BukkitUpdater : Plugin 'FenceDoor By Ashour' isn't in loaded repositories
    2011-06-07 02:43:28 [INFO] BukkitUpdater : Plugin 'TrainYourLung' isn't in loaded repositories
    2011-06-07 02:43:28 [INFO] BukkitUpdater : Plugin 'Backpack' isn't in loaded repositories
    2011-06-07 02:43:28 [INFO] BukkitUpdater : Plugin 'Jobs' isn't in loaded repositories
    2011-06-07 02:43:28 [INFO] BukkitUpdater : New version detected for 'General' (new version: 3.422)
    2011-06-07 02:43:31 [INFO] BukkitUpdater : Done checking for updates.
    It's dead?
     
  25. Offline

    eisental

    I think only the craftbukkit version check is dead. As you can see minerepo.tk still works otherwise it wouldn't find any new versions...
     
  26. Offline

    DaddyCool64

    Oh, i see.
    my mistake, sorry
     
  27. Offline

    DaddyCool64

    @KokaKiwi
    Update thread, please. Works fine with CB 953, without CB version check
     

Share This Page