diff --git a/src/main/java/to/us/tf/DeathSpectating/ConfigManager.java b/src/main/java/to/us/tf/DeathSpectating/ConfigManager.java index fa9b432..946108c 100644 --- a/src/main/java/to/us/tf/DeathSpectating/ConfigManager.java +++ b/src/main/java/to/us/tf/DeathSpectating/ConfigManager.java @@ -103,14 +103,11 @@ public class ConfigManager ConfigurationSection titleSection = config.getConfigurationSection("titleMessages"); if (titleSection == null) titleSection = config.createSection("titleMessages"); - - List titles = new ArrayList(Arrays.asList("&cYou died!", "&cGame over!")); - List subTitles = new ArrayList(Arrays.asList("Respawning in {0}", "Score: &e{1}", "Score: &e{1}&f, Respawning in {0}")); - if (titleSection.getStringList("titles") == null) - titleSection.set("titles", titles); - instance.getLogger().info(titleSection.getStringList("titles").get(0)); - if (titleSection.getStringList("subtitles") == null) - titleSection.set("subtitles", subTitles); + + if (titleSection.getStringList("titles").isEmpty()) + titleSection.set("titles", new ArrayList(Arrays.asList("&cYou died!", "&cGame over!"))); + if (titleSection.getStringList("subtitles").isEmpty()) + titleSection.set("subtitles", new ArrayList(Arrays.asList("Respawning in {0}", "Score: &e{1}", "Score: &e{1}&f, Respawning in {0}"))); instance.saveConfig(); }