[ADMN] PlugMan - In-Game and Console Plugin Manager [BukkitDev]

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

  1. Offline


    Project has been continued by ryanclancy000 at dev-bukkit here: http://dev.bukkit.org/server-mods/plugman/

    PlugMan - A Bukkit Plugin Manager
    Current Version: v1.3.2

    • Enable/Disable/Reload Plugins on the fly.
    • All commands work on the server console.
    • List plugins and show their status in green (enabled) or red (disabled) without client crashes.
    • Get plugin info such as the version, author(s), and description.
    • Permissions support (not required though).
    • List the commands a plugin has registered.
    • Describe the usage of a plugins commands.

    • /plugman list <Page> - lists all plugins loaded on the server. Page is optional
    • /plugman vlist <Page> - lists all plugins loaded with their version next to them. Page is optional
    • /plugman load <PluginName> - load a new plugin.
    • /plugman disable <PluginName> - disables a plugin.
    • /plugman enable <PluginName> - enables a plugin
    • /plugman info <PluginName> - shows the version, author, description and status of the plugin.
    • /plugman reload <PluginName> - disables and then re-enables a plugin.
    • /plugman usage <PluginName> - gets all the commands a plugin has registered.
    • /plugman describe <CommandName> <PluginName> - describe a command a plugin has registered.

    PlugMan will use the Permissions plugin automatically if found. If Permissions is not found, it will simple give server OPs full permission and everyone else nothing.

    Permission Nodes:
    • 'plugman.list' - gives the ability to use /plugman "list" and "info"
    • 'plugman.describe' - gives the ability to use /plugman "usage" and "describe"
    • 'plugman.admin' - give the ability to use all commands.
    v1.3.2 - 8/16/2011
    - Update for new bukkit permissions.

    v1.3 - 3/19/2011
    - Rebuilt against latest Recommended CB (556).
    - Added ability to list plugins with pages.
    - Added ability to list plugins with version numbers next to each plugin.

    Change Log (open)

    v1.2.2 - 2/28/2011
    - Rebuilt against latest recommended craftbukkit build (440 as of now).
    - Changed to a static download link.

    v1.2.1 - 2/23/2011
    - Changed namespace to no longer use com.bukkit in preparation for com.bukkit being sealed.

    v1.2 - 2/21/2011
    - Added the "usage" and "describe" commands to allow plugman to list all the commands a plugin has registered.

    v1.1 - 2/21/2011
    - Fixed minor bug causing a plugin to not be enabled on load if the jar filename was different then the plugin name.

    v1.0 - 2/21/2011
    - Initial Release.


    Source: GitHub
  2. Offline


    aahhh ok thanks for the heads up on that, anyway to have this plugin tell whether or not a disable was successful?
  3. Offline


    I don't think so, no. I guess Bukkit could use some improvement in this area. But that would involve quite some serious changes with plugin handling.
  4. Offline


    Would it be possible to make /plugman vlist dump to a file for a more human readable list, instead of all on one line from the server.log? Or some kind of column format when listed on the console?
  5. Offline


    The title says Console and Plugin manager but I don't see a way to issue console commands?
  6. Offline


    Euhm, just the exact same commands as listed in the first post, except you don't type the / ?
  7. Offline


    I get following error, after/during reloading a plugin, it's the plugin BukkitUpdater, disabling works, but enabling failed somehow. i tried it manually and i get the message, that it's already active
    2011-05-06 19:17:32 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'plugman' in plugin PlugMan v1.3
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:255)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:675)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:638)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:632)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.NoClassDefFoundError: org/jdom/JDOMException
        at org.kokakiwi.bukkitupdater.BukkitUpdater.onEnable(BukkitUpdater.java:53)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:632)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:218)
        at com.bekvon.bukkit.plugman.PlugMan.enablePlugin(PlugMan.java:338)
        at com.bekvon.bukkit.plugman.PlugMan.reloadPlugin(PlugMan.java:352)
        at com.bekvon.bukkit.plugman.PlugMan.doCommand(PlugMan.java:133)
        at com.bekvon.bukkit.plugman.PlugMan.onCommand(PlugMan.java:65)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    Caused by: java.lang.ClassNotFoundException: org.jdom.JDOMException
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        ... 21 more
  8. Offline

    Psycho Robot

    I'd like to be able to hide plugins from being displayed, like if I had a plugin I didn't want people to know about (so I could surprise them with it, or use it without them knowing, etc.) or if it was installed but inaccessible to everyone but me
  9. Offline


    This thing is pretty awesome. Saves me a lot of time when testing runtime conflicts between plugins. Just a question though. Is there of will there ever be any way to enable/disable all plugins at once, or to group a set of plugin names together and enable/disable the group? Going through and enabling/disabling each plugin one by one is time consuming.
  10. Offline


    any chance of getting an /plugman unload command? This would disable the plugin then unload it so I could update the .jar with out bringing down the server. Not sure if it can be done or not but figured I would request it.
  11. Offline


    CB now has that ability when the server gets reloaded.
  12. Offline


    What do you mean? I know I can shut down the server and restart it but is there another way?
  13. Offline


    in game or from console /reload reloads the entire server. If all plugins behave you don't even get disconnected.

    put same named files in plugins/update and they will replace the old versions when reloaded or when server is stop/started
  14. Offline


    oh, great! thanks for letting me know that, I'll start using that from now on to speed up reboots.
  15. Offline


    update soon? (and what is the clean code thing you need to update?)
  16. Offline


    Does this support multi-worlds?
    I am looking for something to enable/disable plugins per world so I can stop the plugins for my rpg world from running in my creative world. Some of them have no permissions/commands hence not being able to stop them from running in the creative world, for example iConomy and related plugins are the most concern as it makes it easy for players to earn money just by playing in the creative world without the risks as fall damage etc is switched off.
  17. Offline

    Psycho Robot

    That's really the plugin's responsiblity, not the plugin manager's responsiblity. I'm not even sure its possible to disable plugins in only one world, since they need to be fully loaded to use them in the proper worlds.
  18. Offline


    Yeah thats what I'm thinking tbh. I was really just wandering if there was any way of doing it as quite a few plugin developers wont make their plugins support multi-verse and other multi world plugins.
    Would be nice if I knew how to code etc, then maybe I could modify the plugins to support multi worlds but thats just not gonna happen. My brains not as good as it used to be these days. It would take me years to leanr even the basics. lol
  19. Offline


    Would it be possible to add a /plugman <delete> feature that just actually deletes that plugins' jar, after disabled?
  20. Offline


    Could you make an option of deleting a plugin ? Then i would be a perfect plugin manager tool.

    EDIT:Oh just noticed the same request in the above post.
  21. Offline


    So if you disable a plugin will it keep disabled even thru a restart or reload or stop?
  22. Offline


    No, Plugman cannot force itself early enough in the plugins loading 'line' to check up on all plugins that are being loaded to do that.
    kahlilnc likes this.
  23. Offline


    That is a very old changelog. x3
  24. Offline


    Whenever I /plugman disable a plugin... It never works..... For example, I run CB 928, and I have a plugin called cactus club which lets me put cactus everywhere. I disabled it, and it was still working. Was this because it was already loaded or was it an error?
  25. Offline


    Very cool! Version 1.3 is working perfectly on my 860 server! Just one question, where does Plugman look for plugins to load when you use "/plugman load <PLUGIN NAME>"?

    Hurrr Nevermind I got it. It's just in the plugins folder ><

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 9, 2016
  26. Offline


    The problem with the way plugins are designed to work is that it leaves the responsibility of plugin behavior at the plugin developer. There are two issues.

    First, disabled plugins still have all events sent to them by Bukkit. This is the main issue that you encountered. The plugin should check itself whether it is still enabled when it is sent events. Clearly that plugin doesn't.

    Second, since plugins have to register their event handlers in their onEnable method, they might register multiple times if you use a plugin like Plugman to disable and re-enable them. Most plugins don't take that possibility into account.

    So, this is up to that plugin developer to fix.
  27. Offline


    Ah, ok that makes sense. Alright. well thanks for the quick reply :D I will take this into account.
  28. Offline


    For some reason it can't find the plugin AfkBooterv1.0.2.jar
    23:57:59 [INFO] File does NOT exist, check name and try again.

    It's clearly there. Is plugman not able anymore to load files that weren't there when the server started ? I tried to rename it to AfkBooter.jar, but still doesn't work. So it's not the filename.
  29. Offline


    For a while now, reloading plugins seems to make them double-loaded. Great examples of these are Citizens and AutoMessage.
  30. Offline


  31. Offline


Share This Page