+ Added plugin

This commit is contained in:
Matthew Cech
2019-04-20 02:00:32 -07:00
parent 25c1e9a1a2
commit 7e57ad79a0
9 changed files with 174 additions and 15 deletions
+14
View File
@@ -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)
{