- Start the indefinite ban system, currently working with manually adding to the configuration.

- /plex reload reloads the indefinite bans
- Fixed bug where AdminChat showed up with symbols still and not colorized in adminchat
This commit is contained in:
Taah
2022-02-27 22:28:00 -08:00
parent fea21195da
commit 8550240754
10 changed files with 166 additions and 43 deletions

View File

@ -35,6 +35,7 @@ public class Plex extends JavaPlugin
private static Plex plugin;
public Config config;
public Config messages;
public Config indefBans;
private StorageType storageType = StorageType.SQLITE;
private SQLConnection sqlConnection;
@ -64,6 +65,7 @@ public class Plex extends JavaPlugin
plugin = this;
config = new Config(this, "config.yml");
messages = new Config(this, "messages.yml");
indefBans = new Config(this, "indefbans.yml");
sqlConnection = new SQLConnection();
mongoConnection = new MongoConnection();
@ -75,6 +77,7 @@ public class Plex extends JavaPlugin
{
config.load();
messages.load();
indefBans.load();
system = config.getString("commands.permissions");
try
@ -122,6 +125,7 @@ public class Plex extends JavaPlugin
PlexLog.log("Rank Manager initialized");
punishmentManager = new PunishmentManager();
punishmentManager.mergeIndefiniteBans();
// banManager = new BanManager();
PlexLog.log("Punishment System initialized");