GlobalPlugins
GlobalPlugins
GlobalPlugins is a plugin made for server owners. But only the server owners running mutiple servers will benefit from this.
What does GlobalPlugins do?
GlobalPlugins loads plugins from a defined directory into the server. This means that you install this plugin on 5 servers, and link those to 1 directory. Then all 5 servers will use the plugins inside that directory. You can also select some plugins from the directory, based on the name of the plugin file (awesomepluginV1_3a.jar). Basically, this creates global plugins!
Why would you want this?
When a big update comes out from bukkit, or a plugin, and you use this plugin on every server.(examples like essentials, vault, permissions) You would normally need to update every plugin, on every server. Now all you have to do is drag the new plugin in the globalPlugins directory, and youre all set!
Features:
- Loads plugins from a custom folder
- Allows the possibility of global configurations, or server-side configs.
Usage:
Place the 'globalPlugins' jar file in the /plugins/ directory from your server(s). restart your server. This will create the config file, and will try to create a default Globalplugins location. Default: /minecraft/servers/serverA/ would use the directory: /minecraft/servers/globalplugins/ If you change this, restart the server for it to have effect on te plugins.
Commands:
/globalplugins
- Alias: /gp, /globalplugin
- This is the base command and shows a* n informative message.
/globalplugins reload
- This will reload the globalplugins config
/globalplugins scan
- This will rescan the globalplugins directory, and make sure every plugin is inside our config.yml This will also load and enable any new plugin found. This will normally happen only on first start. If you dont want every plugin enabled, you should not use this, or remove the unused plugins from the config and reload.
Permissions:
globalplugins.reload
- Default: OP
- Allows you tu use the reload command
globalplugins.scan
- Default: OP
- Allows you to use the scan command
Bugs:
- If a plugin inside your /plugins/ directory needs a plugin from the globalplugins directory, if will cause an "UnknownDependecyException" in the very beginning. This is okay, and cannot harm your server. The plugin will be loaded after everything else, and will work as expected. I cannot fix this, because its a problem on bukkits end.
- A plugin could create his configs inside the globalPlugins config, even when you have globalconfig: false. This is only from the outside, and will work as expected from the inside. It is caused by plugins using a config before we changed its locations.
Having another bug? Please leave a comment below!
Dont place these as global plugins:
- PermissionsEx
- BKCommonLib
- Protocollib
- Multiverse-Core
Incompatible with:
- FactionsPlus
TODO:
- Get rid of the "UnknownDependecyException error somehow :/
- Global craftbukkit?
- Allow /globalplugins reload to automatically load/unload the plugins
- something else i forgot ATM
Still having errors?
If your plugin still causes errors, try opening the plugin.jar, and edit the plugin.yml. Add "depends: [GlobalPlugins]", if there is no "depends", otherwise add it to the end of the list like depends: [plugin1, plugin2, GlobalPlugins].
You could also try to edit the list of plugins in the config. The top/first plugin will be loaded first, and last will load last
Donate
Please! dont waste your money on me, this plugin is totally free, and i needed it myself. So i dont accept donations
Source code:
Sure! The source code can be found here: https://github.com/kwek20/GlobalPlugins
Also still works in 1.7.5 ;)
This plugin works fine in 1.7.2! So no need to update it. If anyone found a bug or error, please tell me!
ejam4 If your confused, wait till you try and figure out Bungeecord and spigot :)
@Ejam4
This is not about worlds, but servers. If you want multi world plugins, just make a spigot server and link them together :)
Wait so you can have one world only use faction and one world use Towny?? im still kinda confused
@mig4ng
The problem with that is thatit will use all the configs from essentials like locations kits etc. Unless this is what you want, i would reccomend it
Is it safe to use essentials with this plugin for bridge all the servers money? Or authme for example?
Wow, great plugin and thanks a lot for making it. Now I don't have to make it myself.
When I get time I will try to get to the bottom of the "Get rid of the "UnknownDependecyException error somehow :/" issue.
It is a shame that a lot of poorly programmed plugins will not be compatible with this. Oh well, I guess people will learn to not use them.
Great plugin, does actually work, but have a bug atm. I tried to create a server with the same permissions. So that a player has the same rank on server A as on server B. This because PEX had died, and there's no normal permissions plugin with MySQL support. I noticed that bPermissions didn't work with this plugin, but GroupManager did. But now, when I want to promote myself to another rank, it creates a all the config files in the /plugins folder, instead of using the ones in the /globalplugins folder. My globalconfig option is set to true. Please fix this. Everything else works great. Really nice plugin!
EDIT: New bug, Buycraft doesn't work, it also creates a new config folder in /plugins, but my globalconfig option is also set to true for Buycraft. Please fix these bugs..!
@red0fireus
will investigate asap
does not work with petcreepers
@RiotShielder
i tested it with my own jar, and works fine. But the jar downloadable here seems to be missing it. Ive uploaded a new version, download and try again :)
@kwek20
I have been testing this with a few random plugins, and this is what my config looks like http://pastebin.com/Qd7HgLLQ
/home/Minecraft/test/moreplugins contains AntiAD.jar AutoItemBarReload.jar Clearlag.jar CustomServerMessages.jar Essentials.jar EssentialsGeoIP.jar EssentialsSpawn.jar
In this example I don't want to reload any Essentials plugin, however in the log... http://pastebin.com/c6dfMSnH
Why would Essentials still be loading?
@RiotShielder
Yes, once the config is succesfully generated with all the plugins from the folder, you can: 1. stop the server 2. edit/remove the plugins you want enabled. 3. Start the server
You can just remove the node from the config like so plugin1: globalconfig: false
just remove it entirely. And it wont load again unless you scan, /gp scan
Is it possible to choose which plugins to use on each server?
I.E. I have server A, server B, and server C, and plugins X Y and Z
Server A needs X and Y, server B needs Y and Z, and server C needs X and Z
Is it possible to config server A to load X and Y but not Z, server B to load Y and Z but not X, and server C to load X and Z but not Y.
Thanks for this plugin!
@mobilephone2003
I ned it myself, so it will always be compatible/updated. But please take a look at the not compatible list! Also make sure to restart a couple of times if you get errors. The plugin fixes itself.
This sounds like a great time saver, will be trying this, hope it can stay updated because it will quickly become a vital plugin!
@S1lverK3y
@DrMadFellow
@SwiftSwamp
Updated plugin to fix an NPE You can find it here: http://dev.bukkit.org/bukkit-plugins/globalplugins/files/3-global-plugins-1-1/ WARNING! This is not yet approved by bukkitdev staff
@SwiftSwamp
This is allready in. On the first scan of the plugin for plugins inside the globalPlugins folder, it addsevery plugin to the config from the server. After that, you can remove/add plugins to that config. This will only reset if you scan again.
Suggestion: The ability to write in a config from GlobalPlugins what plugins to use from the directory , because I may have say 5 servers...but only 5 of them use Essentials , 3 may use Vault , the other 2 may use only so and so..instead of every server using every plugin. Also , so I can rename the plugin to <PluginName>_Version...a feature to make it where it takes the plugin name from the plugin.yml so I dont' have to update the name in each one if that feature is implanted.