Plugin Tweaks
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
Please add Enabling and disabling plugins for some worlds
That would be great and I would donate!
@Mauchan
Upcoming update will fix this using underscores...
@MikyoM
What do you mean by priorities?
@MrEkinoxx
This works with Bukkit for MC 1.6.2 :)
Please update ! :)
Is it posible for this plugin to set priorities of commands?
There is a plugins with shitespace in name like http://dev.bukkit.org/bukkit-plugins/sign-edit/ Your plugin can't handle them.
@ColonelJdog
There is nothing being added/removed/changed... so there's no point really... but you can submit features here :)
Will this plugin have a new update anytime soon?
This looks like a cool plugin. I'll test it out on my server!
@SonarBeserk
Oups :/ Forgot to change the template :S Sorry about that
the help message for the plugins subcommand seems to be off. it says "Clears the chat from spam or other" shouldn't it be different?
@xWallou
This plugin should support all plugins, as for Factions showing the tag, that's because of the way Factions is coded... the onDisable method of Factions doesn't remove the tag... I'll release a new build in the next week or so to fix a few of these problems :) Thanks for the heads up.
Does this plugin support Factions and PermissionsEx? I just loaded it on my server and it's only showing the Faction tag but anything PermissionsEx tries to load (prefixes, suffixes), they don't show.
Other than that, I love the customization this plugin allows. Great work!
@Hoot215
Thanks for that heads up :)
@Decimator714
File is being reviewed by Bukkit Dev :S
No download
@tryy3 @Zacky1
Actually, it depends on how the plugin is coded. Objects referenced by static fields will not be removed from memory, which is the main cause of memory leaks when unloading plugins. If the plugin is coded properly, however, there won't be any memory leaks.
@tryy3
No, the reload causes no memory leaks, and it will reload the specific plugin only... It's the equivalent of restarting your server...
@AConsolePeasant
Yay! :DD
Looks like a good idea, i'll download and use it for sure!
is the reload using the regular reload so that it creates memory leaks and bad stuff?