+ Added plugin
This commit is contained in:
@@ -6,6 +6,7 @@ import java.util.List;
|
||||
import java.util.concurrent.Semaphore;
|
||||
|
||||
import commands.*;
|
||||
import core.lua.PluginManager;
|
||||
import dataStructures.*;
|
||||
import net.dv8tion.jda.core.entities.Emote;
|
||||
import net.dv8tion.jda.core.entities.Member;
|
||||
@@ -38,6 +39,9 @@ public class ObjectBuilderFactory
|
||||
// RPManger for tracking RP system
|
||||
private static RPManager rpManager;
|
||||
|
||||
// Plugin manager
|
||||
private static PluginManager pluginManager;
|
||||
|
||||
// Localization classes - these are singletons, but should be initialized before almost all other
|
||||
// things so their inclusion in the factory is to ensure they're started at the correct time.
|
||||
@SuppressWarnings("unused") private static LocStrings locStrings;
|
||||
@@ -408,6 +412,16 @@ public class ObjectBuilderFactory
|
||||
return rpManager;
|
||||
}
|
||||
|
||||
public static PluginManager ConstructPluginManager()
|
||||
{
|
||||
LazyInit();
|
||||
|
||||
if(pluginManager == null)
|
||||
pluginManager = new PluginManager("./plugins/");
|
||||
|
||||
return pluginManager;
|
||||
}
|
||||
|
||||
public static Integer GetGuildCount()
|
||||
{ synchronized(guildCache)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user