Plugin Tweaks
Version: 1.0
PluginTweaks: A plugin that will help you with your daily server administration. Ever got stuck updating a plugin, yet not being able to restart your server because there's players online? Well search no more! This plugin does just that.
Pages: MCStats (Coming Soon)
Features
- Disable/Enable a plugin
- Reload a plugin
- Load/Unload a plugin.
- Get the plugin list
- API for developers.
Commands
Command | Permission | Description |
/PluginTweaks Plugins | PluginTweaks.Plugins | Get a list of all plugins. Enabled or Disabled. |
/PluginTweaks Reload | PluginTweaks.Reload | Reload the PluginTweaks Configuration |
/PluginTweaks Disable <Plugin> | PluginTweaks.Plugin.Disable | Disable a plugin. |
/PluginTweaks Enable <Plugin> | PluginTweaks.Plugin.Enable | Enable a disabled plugin |
/PluginTweaks Reload <Plugin> | PluginTweaks.Plugin.Reload | Reload a plugin complete. |
/PluginTweaks Load <Plugin> | PluginTweaks.Plugin.Load | Load a plugin from scratch. Requires the file name, followed by .jar |
/PluginTweaks Unload <Plugin> | PluginTweaks.Plugin.Unload | Unload a plugin for removal... (Java 7 only) |
For Developers:
PluginTweaks has a nice and easy API for you to use. You can create a "virtual" plugin, this will help you with manipulating it.
- Guide:
Plugin testPlugin = pt.getServer().getPluginManager().getPlugin("TestPlugin"); PTPlugin ptpl = new PTPlugin(testPlugin);
Methods available:
- getName()
- getPlugin()
- getState() <- Enabled or disabled
- getVersion()
- getcoloredState() <- Green = enabled | red = disabled
- getJar()
- setEnabled()
- setDisabled()
- setReload()
- setLoad()
- setLoad(String name) <- Load a null plugin
- setUnload()
- setName() <- Changes plugin name
- restoreName() <- Resets its name to the original one in plugin.yml...
These methods all throw a "NotLoadedException". This will be thrown if the plugin is unloaded, and you attempt to modify/get info. You need to load the plugin first. You can additionally create a PTPlugin ptpl = new PTPlugin(null); then call the setLoad(Name); method.
Download
- Like every single plugin out there, download the latest jar here: (Click)
- Put it right into your plugins folder!
- Reload/Restart your server!
- You're set to go!
Coming Soon
Green = Done | Red = Cancelled | Orange = Planned
- Unload a plugin for removal.
- Load a plugin for addition.
- Better developer API
- Crashes are now handled by PluginTweaks instead f the plugin itself.
- Suggestions? Open up a ticket or write it as a comment!
My plugins:
The Tweaks suite: ChatTweaks | LWCTweaks | PluginTweaks | BanTweaks
Please submit a ticket if you found a bug or an error. Never paste full errors in the comments. Use pastebin instead