[UNSUPPORTED][ADMN] HotSwap: Enable, Disable, Reload, and Load Plugins On-the-Fly

Discussion in 'Inactive/Unsupported Plugins' started by Zenexer, Jan 18, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Zenexer

    You'll want to use GroupUsers with this one.

    Commands
    • /plugin load PLUGIN: loads the Java archive for PLUGIN from the plugins directory and enables it. Relative paths are accepted.
    • /plugin list: lists all loaded plugins, both enabled and disabled.
    • /plugin enable PLUGIN: enables already-loaded PLUGIN. Does nothing if PLUGIN is already enabled.
    • /plugin disable PLUGIN: disables already-loaded PLUGIN. Does nothing if PLUGIN is already disabled.
    • /plugin reload PLUGIN: disables, loads, and enables PLUGIN, though not necessarily in that order. Theoretically, disable could run after enable, but that would be unlikely/impossible in most/all JVMs.

    Download from Earth2Me or get the source code.
     
  2. Offline

    McAndze

    Sounds like a Bukkit issue then.Just to be sure, did you try my latest version on that build? Or are you using the original plugin?
     
  3. Offline

    shadydeath999

    i crash when i use the /plugin commands
     
  4. Offline

    Ray

    me too, its just because of a large plugin list i think? How many plugins do you have installed?
     
  5. Offline

    shadydeath999

    14 until now
     
  6. Offline

    McAndze

    I updated the plugin. It's on page 2. It should fix the crash errors.
    But the enable/disable/reload/load part does not work on the very latest builds, unfortunately :( Worth the shot though.
     
  7. Offline

    pagangeek

    Can i check, what exactly are the permissions?
    Currently, it seems all my members can run /plugin list.
    Despite not setting any explicit permissions other than '*' in the admin group.
     
  8. Offline

    McAndze

    Oh I forgot add them to my post..
    It's basically "hotswap.plugin.COMMAND"
    /plugin list would be:
    hotswap.plugin.list

    I haven't tested the permissions part with my last build, but I'm assuming it works, since I didn't change that part.
     
  9. Offline

    pagangeek

    I've got - 'hotswap.plugin.*' listed in my admin group.

    Attempted /plugin list
    Server responds with Invalid use of /plugin

    Bukkit 87, CraftBukkit 169
     
  10. Offline

    McAndze

    I'll check it out.
    Btw, I don't think the plugin loading works with CraftBukkit #169. Worth the shot though.
     
  11. Offline

    Astrum

    Hi Mc, (eheheh I found you), not looked at this or at its source in anyway but would it be possible to read all file names in the plugins folder and write them to a text file?
    Easyest way i can think of to have a "plugin restart" thingy, or have it read a text file and start all plugin names writen to it on server startup?
     
  12. Offline

    McAndze

    That's quite a complicated way to do it. The plugin does everything fine, but it's the (At least it seems like it) enable/disable plugin functions that doesn't work in CraftBukkit ;)

    @pagangeek - I'm not at the PC with the source at the moment, but I think I figured out the problem, so it should be fixed tonight.
    Can you tell me if the plugin loading works with CraftBukkit #169?
     
  13. Offline

    Kekec852

    In some cases you could get ConcurretnModificationException ...
    I was trying to enable plugin called God Powers ...
     
  14. Offline

    Scizzr

    Many plugins are broken as of #168 (see comments). The way the server receives commands changed, so the plugin just needs an update.
     
  15. Offline

    xZise

    Hmm I don't know if you mean this plugin, but on my server it doesn't crash.

    @Zenexer: Could you please write to the log and not println()?

    Fabian
     
  16. Offline

    captainbinary

    I have recieved an error while reloading a plugin.



    Minecraft has crashed!
    ----------------------

    Minecraft has stopped running because it encountered a problem.

    If you wish to report this, please copy this entire text and email it to [email protected].
    Please include a description of what you did when the error occured.

    Mods loaded:
    ModLoader Beta 1.2_02v2
    mod_mocreatures 2.5.4

    --- BEGIN ERROR REPORT c44d4d3b --------
    Generated 01/02/11 21:04

    Minecraft: Minecraft Beta 1.2_02
    OS: Windows 7 (amd64) version 6.1
    Java: 1.6.0_21, Sun Microsystems Inc.
    VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Sun Microsystems Inc.
    LWJGL: 2.4.2
    OpenGL: ATI Radeon HD 4600 Series version 3.3.10362 Compatibility Profile Context, ATI Technologies Inc.

    java.lang.StringIndexOutOfBoundsException: String index out of range: 75
    at java.lang.String.charAt(Unknown Source)
    at nh.a(nh.java:147)
    at nh.a(nh.java:114)
    at pe.a(pe.java:211)
    at ll.b(SourceFile:346)
    at net.minecraft.client.Minecraft.run(SourceFile:668)
    at java.lang.Thread.run(Unknown Source)
    --- END ERROR REPORT 72ad00c3 ----------

    dont know if this will help. but thanks anyway :)
     
  17. Offline

    MrCamping

    Does this work with Permissions?
    Its only specified GroupUsers in main post, but no one uses groupsusers since it hasnt been update for a month :(
     
  18. Offline

    Draconicus

    *gets his developer net*
    Let's go a-huntin'!
     
  19. Offline

    Wolfy9247

    Will this plugin be updated soon, eventually?
     
  20. Offline

    feverdream

    Really looking forward to a version of this that is stable and functional.
     
  21. Offline

    iSushi

    Needs to be updated~ ... Don't need any error messages (internal server error), it's just out of date :)
     
  22. Offline

    Ziggoo Lee

    Hello,

    Nice work ! I like this plugin.

    I have a crash though.

    I run /plugin disable MyPlugin ==> Ok
    I try to issue a command that was implemented by MyPlugin to test if MyPlugin is actually disabled.

    I get an Internal Server Error that disconnects my client.
    The server stack is :

    Code:
    2011-02-12 14:14:40 [WARNING] Failed to handle packet: java.lang.NullPointerException
    java.lang.NullPointerException
            at org.sqlite.Stmt.executeQuery(Stmt.java:89)
            at org.bukkit.fgr.mykits.MyKitsDAO.listKits(MyKitsDAO.java:55)
            at org.bukkit.fgr.mykits.MyKits.performKit(MyKits.java:200)
            at org.bukkit.fgr.mykits.MyKits.onCommand(MyKits.java:42)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:17)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:77)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:171)
            at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:610)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:589)
            at net.minecraft.server.Packet3Chat.a(SourceFile:24)
            at net.minecraft.server.NetworkManager.a(SourceFile:232)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:104)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:317)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:232)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    
    CraftBukkit: 312

    obviously, this comes from my plugin. I use the onCommand() method to implement my commands. It looks like the plugin is actually disabled but the actual commands are still live...

    Is this something that was already reported ?
    Please, let me know.

    Thanks
     
  23. Offline

    Draconicus

    Plugin's obviously dead. Can somebody make a new one?
     
    DigidragonZX likes this.
  24. Offline

    bekvon

    I made a new one ;)
    Link: PlugMan
     
  25. Offline

    iFooZy

    Is it permissions supported?
     
Thread Status:
Not open for further replies.

Share This Page