mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 23:38:25 +01:00
Changed to pluginmanager direct for enabling plugins
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
8d08cd71c9
commit
dc5b6726dc
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ public final class CraftServer implements Server {
|
||||||
Plugin[] plugins = plugins = pluginManager.loadPlugins(pluginFolder);
|
Plugin[] plugins = plugins = pluginManager.loadPlugins(pluginFolder);
|
||||||
|
|
||||||
for (Plugin plugin : plugins) {
|
for (Plugin plugin : plugins) {
|
||||||
plugin.getPluginLoader().enablePlugin(plugin);
|
pluginManager.enablePlugin(plugin);
|
||||||
}
|
}
|
||||||
} catch (Throwable ex) {
|
} catch (Throwable ex) {
|
||||||
Logger.getLogger(CraftServer.class.getName()).log(Level.SEVERE, "(Is it up to date?)", ex);
|
Logger.getLogger(CraftServer.class.getName()).log(Level.SEVERE, "(Is it up to date?)", ex);
|
||||||
|
|
Loading…
Reference in a new issue