BIG feat,fix,refactor: use database and some minor refactoring which also fixes memory issues and * related to PersistentDataUtilities

This commit is contained in:
ChomeNS
2024-12-14 15:39:24 +07:00
parent d09b9b37db
commit 621f06f2e5
18 changed files with 656 additions and 530 deletions

View File

@@ -61,6 +61,7 @@ public class Bot {
public ChatPlugin chat;
public CommandSpyPlugin commandSpy;
public PositionPlugin position;
public DatabasePlugin database;
public ServerPluginsManagerPlugin serverPluginsManager;
public SelfCarePlugin selfCare;
public QueryPlugin query;
@@ -93,7 +94,7 @@ public class Bot {
public FormatCheckerPlugin formatChecker;
public ClearChatNameAnnouncerPlugin clearChatNameAnnouncer;
public WhitelistPlugin whitelist;
public PlayersPersistentDataPlugin playersPersistent;
public PlayersDatabasePlugin playersDatabase;
public IPFilterPlugin ipFilter;
public Bot (Configuration.BotOption botOption, List<Bot> bots, Configuration config) {
@@ -144,7 +145,7 @@ public class Bot {
this.formatChecker = new FormatCheckerPlugin(this);
this.clearChatNameAnnouncer = new ClearChatNameAnnouncerPlugin(this);
this.whitelist = new WhitelistPlugin(this);
this.playersPersistent = new PlayersPersistentDataPlugin(this);
this.playersDatabase = new PlayersDatabasePlugin(this);
this.ipFilter = new IPFilterPlugin(this);
for (Listener listener : listeners) listener.loadedPlugins();