From b32259d7f18ca9b8b88b02d47488c6b9f91f0bc6 Mon Sep 17 00:00:00 2001 From: Jonathan Williams Date: Mon, 12 Jan 2015 12:58:40 -0800 Subject: [PATCH] Fixed length checking with team prefix in GameScoreboard --- .../src/nautilus/game/arcade/scoreboard/GameScoreboard.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/scoreboard/GameScoreboard.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/scoreboard/GameScoreboard.java index 24fc44c6e..ba185561d 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/scoreboard/GameScoreboard.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/scoreboard/GameScoreboard.java @@ -295,7 +295,7 @@ public class GameScoreboard String line = newLines.get(i); String prefix = line.substring(0, Math.min(line.length(), 16)); - String suffix = ChatColor.getLastColors(line) + line.substring(team.getPrefix().length()); + String suffix = ChatColor.getLastColors(line) + line.substring(Math.min(team.getPrefix().length(), 16)); if (!(team.getPrefix() == null ? "" : team.getPrefix()).equals(prefix)) team.setPrefix(prefix);