1
0
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:
nossr50
2019-07-02 21:45:42 -07:00
parent 5ec59536c7
commit bc183cd4f9
29 changed files with 144 additions and 147 deletions

View File

@@ -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;
}
}