From 8dab75f3cb215c233829da557d7b7c2667ddd015 Mon Sep 17 00:00:00 2001 From: GJ Date: Thu, 2 May 2013 08:48:17 -0400 Subject: [PATCH] Can't use brackets in YAML. --- src/main/java/com/gmail/nossr50/config/AdvancedConfig.java | 2 +- .../java/com/gmail/nossr50/skills/fishing/FishingManager.java | 2 +- src/main/resources/advanced.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/config/AdvancedConfig.java b/src/main/java/com/gmail/nossr50/config/AdvancedConfig.java index 42ca3f3bc..5da688e66 100644 --- a/src/main/java/com/gmail/nossr50/config/AdvancedConfig.java +++ b/src/main/java/com/gmail/nossr50/config/AdvancedConfig.java @@ -286,7 +286,7 @@ public class AdvancedConfig extends AutoUpdateConfigLoader { public int getKrakenTriesBeforeRelease() { return config.getInt("Kraken.Tries_Before_Release", 50); } public int getKrakenHealth() { return config.getInt("Kraken.Health", 50); } public String getKrakenName() { return config.getString("Kraken.Name", "The Kraken"); } - public String getServerUnleashMessage() { return config.getString("Kraken.Unleashed_Message.Server", "[PLAYER] has unleashed the kraken!"); } + public String getServerUnleashMessage() { return config.getString("Kraken.Unleashed_Message.Server", "(PLAYER) has unleashed the kraken!"); } public String getPlayerUnleashMessage() { return config.getString("Kraken.Unleashed_Message.Player", "THE KRAKEN HAS BEEN UNLEASHED!"); } public int getKrakenAttackInterval() { return config.getInt("Kraken.Attack_Interval_Seconds", 1); } public int getKrakenAttackDamage() { return config.getInt("Kraken.Attack_Damage", 1); } diff --git a/src/main/java/com/gmail/nossr50/skills/fishing/FishingManager.java b/src/main/java/com/gmail/nossr50/skills/fishing/FishingManager.java index 19d3049f9..9679bb024 100644 --- a/src/main/java/com/gmail/nossr50/skills/fishing/FishingManager.java +++ b/src/main/java/com/gmail/nossr50/skills/fishing/FishingManager.java @@ -91,7 +91,7 @@ public class FishingManager extends SkillManager { world.strikeLightningEffect(location); player.sendMessage(AdvancedConfig.getInstance().getPlayerUnleashMessage()); world.playSound(location, Sound.GHAST_SCREAM, Misc.GHAST_VOLUME, Misc.getGhastPitch()); - mcMMO.p.getServer().broadcastMessage(AdvancedConfig.getInstance().getServerUnleashMessage().replace("[PLAYER]", player.getDisplayName() + ChatColor.RED)); + mcMMO.p.getServer().broadcastMessage(AdvancedConfig.getInstance().getServerUnleashMessage().replace("(PLAYER)", player.getDisplayName() + ChatColor.RED)); Squid kraken = (Squid) world.spawnEntity(player.getEyeLocation(), EntityType.SQUID); kraken.setCustomName(AdvancedConfig.getInstance().getKrakenName()); diff --git a/src/main/resources/advanced.yml b/src/main/resources/advanced.yml index 7cb51e4b8..ca3d88906 100644 --- a/src/main/resources/advanced.yml +++ b/src/main/resources/advanced.yml @@ -423,5 +423,5 @@ Kraken: Attack_Interval_Seconds: 1 Attack_Damage: 1 Unleashed_Message: - Server: [PLAYER] has unleashed the kraken! + Server: (PLAYER) has unleashed the kraken! Player: THE KRAKEN HAS BEEN UNLEASHED! \ No newline at end of file