mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2026-02-20 02:33:15 +01:00
Static Abuse Removal - TextComponentFactory
This commit is contained in:
@@ -60,7 +60,6 @@ public class mcMMO extends JavaPlugin {
|
||||
private ChunkManager placeStore;
|
||||
private ConfigManager configManager;
|
||||
private DynamicSettingsManager dynamicSettingsManager;
|
||||
private DatabaseManagerFactory databaseManagerFactory;
|
||||
private DatabaseManager databaseManager;
|
||||
private FormulaManager formulaManager;
|
||||
private MaterialMapStore materialMapStore;
|
||||
@@ -78,7 +77,9 @@ public class mcMMO extends JavaPlugin {
|
||||
private ScoreboardManager scoreboardManager;
|
||||
|
||||
/* Not-Managers but my naming scheme sucks */
|
||||
private DatabaseManagerFactory databaseManagerFactory;
|
||||
private CommandTools commandTools;
|
||||
private TextComponentFactory textComponentFactory;
|
||||
|
||||
/* File Paths */
|
||||
private String mainDirectory;
|
||||
@@ -114,6 +115,9 @@ public class mcMMO extends JavaPlugin {
|
||||
loadConfigFiles();
|
||||
registerDynamicSettings(); //Do this after configs are loaded
|
||||
|
||||
//Init TextComponentFactory
|
||||
textComponentFactory = new TextComponentFactory(this);
|
||||
|
||||
if (healthBarPluginEnabled) {
|
||||
getLogger().info("HealthBar plugin found, mcMMO's healthbars are automatically disabled.");
|
||||
}
|
||||
@@ -200,7 +204,7 @@ public class mcMMO extends JavaPlugin {
|
||||
playerLevelUtils = new PlayerLevelUtils();
|
||||
|
||||
//Init Notification Manager
|
||||
notificationManager = new NotificationManager();
|
||||
notificationManager = new NotificationManager(this);
|
||||
|
||||
//Init Chat Manager
|
||||
chatManager = new ChatManager(this);
|
||||
@@ -674,4 +678,8 @@ public class mcMMO extends JavaPlugin {
|
||||
public ScoreboardManager getScoreboardManager() {
|
||||
return scoreboardManager;
|
||||
}
|
||||
|
||||
public TextComponentFactory getTextComponentFactory() {
|
||||
return textComponentFactory;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user