PluginManager
QuarterBukkit | (PluginManager) | MinecartRevolution
This project is took over. Nevertheless you can download the latest source here (until we have a git-repo).
English | German
Basic Description
What is PluginManager? It's a simple plugin for managing your Bukkit-Plugins.
PluginManager features:
- Install plugins from BukkitDev ingame
- Return a list with installed plugins and additional information
- Show detailed infos about plugins
- Load/Unload/Reload plugins
- Search for plugins on BukkitDev
- Check if a new version of a plugin is avaiable
- Update to the latest version of a plugin
For this, the plugin accessing the official BukkitDev-Website (http://dev.bukkit.org), fetching the plugin-pages and scanning them.
For Plugin Developers
PluginManager has already one of the best Url-Genrators (for BukkitDev). But for some plugins, this isn't enough.
You want to make sure that your plugin is supported by PluginManager?
- First, you need your BukkitDev-Url. So go on your BukkitDev-Plugin-Site and click on the tab "Overview" (If you aren't already there).
- Copy the Url of the site (For this plugin, it's http://dev.bukkit.org/server-mods/pluginmanager).
- Insert this key-value-pair (like name: PluginManager) in your plugin.yml: Simply replace <URL> with your BukkitDev-Url, so its looking like this (for this plugin):
dev-url: <URL>
Commands
If the parameter in this list contains "Plugins...", you can write down unlimited plugins and split them with spaces (like "/pm list Essentials WorldEdit"). If your plugin name contains a space, try it with a "-" or nothing (like "/pm list Marriage-Reloaded" or "/pm PermBukkit")!
If the parameter in this list contains "all", you can write "all" or no paramerer for ALL plugins (like "/pm list all" or "/pm list").
The Permission "pluginmanager.*" gives access to use all PluginManager functions (Byte default for OPs).
Command | Description | Permission |
/pm help | Shows a help-page. | pluginmanager.help |
/pm list <Plugins... \ all> | Lists some or all plugins with additional information. | pluginmanager.list |
/pm listfile <Plugins... \ all> | Lists some or all plugins with additional information into a file. | pluginmanager.listfile |
/pm info <Plugins... \ all> | Show detailed info about some or all plugins. | pluginmanager.info |
/pm infofile <Plugins... \ all> | Prints detailed info about some or all plugins into a file. | pluginmanager.infofile |
/pm load <Plugins... \ all> | Loads some or all plugins. | pluginmanager.load |
/pm unload <Plugins... \ all> | Unloads some or all plugins. | pluginmanager.unload |
/pm reload <Plugins... \ all> | Reloads some or all plugins. | pluginmanager.reload |
/pm search <Search-String> | Searches for plugins on BukkitDev. | pluginmanager.search |
/pm checkversion <Plugins... \ all> | Checks some or all plugins for a new version. | pluginmanager.checkversion |
/pm update <Plugins... \ all> | Updates some or all plugins if a new version is avaiable. | pluginmanager.update |
/pm install <Plugins...> | Installs some plugins. | pluginmanager.install |
Config
When you start the plugin the first time, it will automatically creates a config.yml in plugins/PluginManager.
Config (the comments aren't in your config, they're for explaining):
# Should PluginManager prints update and installation infos on the console # and log them? # Useful for controlling the version activity. logVersionInfo: true checkVersions: # Should PluginManager checks all plugin versions when the server starts? # (also on reload) # May requires much RAM. onStart: false # Should PluginManager checks all plugin versions when a permitted player #(pluginmanager.checkversion and pluginmanager.update) joins? # May requires much RAM. onJoin: false update: # Should PluginManager updates all plugins when the server starts? # (also on reload) # May requires much RAM. autoUpdate: false error: # Debug: Should PluginManager print internal and not-so-bad errors on # the console? # Not recommended! printSilenceErrors: false file: # PluginManager prints the plugin-list with "/pm listfile" into this # file. list: plugins.txt # PluginManager prints the plugin-info with "/pm infofile" into this # file. info: plugin-info.txt pluginlist: # Should PluginManager build a plugin-cache on startup? (Recommended for # people who use the search-function) # Will take much time! buildOnStart: true # Until which plugin-page (the pages on http://dev.bukkit.org/server-mods) # should PluginManager fetch plugins? # There are about 300 pages on BukkitDev. pageCount: 100 # Which plugins should PluginManager ignore? (You can also let it empty) # PluginManager will also don't unzip files with one of these names. blacklist: - Plugin1 - Plugin2
can u add a command to disable a plugins command and to disable / enable plugins
ok idk what do this does this for all plugins that i try to install plz tell me what wron the only plugin i have got is permissionsbukkit below is what the server said
19:23:32 [SEVERE] Could not load 'plugins/PluginManager.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: Bad version number in .class file at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:155) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230) at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:222) at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:198) at net.minecraft.server.ServerConfigurationManagerAbstract.<init>(ServerConfigurationManagerAbstract.java:50) at net.minecraft.server.ServerConfigurationManager.<init>(SourceFile:11) at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:105) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:378) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:676) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:44) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29) at java.lang.ClassLoader.loadClass(ClassLoader.java:317) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:375) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:242) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:144) ... 9 more
plz contact me at [email protected]
One of my projects is called Marriage Reloaded Its named Marriage The url server-mods/marriage ie not my plugin It thinks it is my plugin The url for the right link is in the plugin.yml But it udates the wrong plugin Sorry for gramar, phone
@DavMicrofix
The version-number of your plugin is too complex (Your: 1.6-DEV-b64 | Recommended for your plugin: Beta 1.6_64).
I hope you can understand that I can't create a artificial intelligence for parsing Version-Strings.
But I will fix your error (you'll get a message like "The plugin ... isn't supported!") in the next big update 2.1!
i can not find a plugin.yml ?? get this error if i try to check for new updates
PluginManager] ?6Checking version for Privileges ... 2012-09-22 20:37:23 [SEVERE] Exception in thread "Thread-10472" 2012-09-22 20:37:23 [SEVERE] java.lang.NumberFormatException: For input string: "DE" 2012-09-22 20:37:23 [SEVERE] at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) 2012-09-22 20:37:23 [SEVERE] at java.lang.Integer.parseInt(Integer.java:492) 2012-09-22 20:37:23 [SEVERE] at java.lang.Integer.parseInt(Integer.java:527) 2012-09-22 20:37:23 [SEVERE] at com.quartercode.qcutil.version.Version.splitVersionNumbers(Version.java:66) 2012-09-22 20:37:23 [SEVERE] at com.quartercode.qcutil.version.Version.bigger(Version.java:111) 2012-09-22 20:37:23 [SEVERE] at com.quartercode.pluginmanager.util.PluginNetUtil.getNewVersion(PluginNetUtil.java:69) 2012-09-22 20:37:23 [SEVERE] at com.quartercode.pluginmanager.commands.CheckVersionCommand$CheckVersionThread.run(CheckVersionCommand.java:61) 2012-09-22 20:39:51 [INFO] [VirtualPack] Saving user data...
@TeamCobalt
Thank you!
i have been trying to make something liek this cause their wasn't a plugin for this
i got so much trouble to make an auto checker for updates
this rly helps!
this saved so much time
maybe add pluginmanager.* permission node
@fatmarleys
I'll add this in 1.2.
could you also add something like /plugin output and have all the info about the plugins printed to a txt document. Specifically the name, version and link if available.