From ba981309c6401f4c9d53912d99e5caa2044fe5db Mon Sep 17 00:00:00 2001 From: Yaruma3341 Date: Sat, 23 Feb 2019 12:25:17 +0100 Subject: [PATCH] Not stable version Signed-off-by: Yaruma3341 --- src/me/yaruma/fightsystem/FightSystem.java | 1 + src/me/yaruma/fightsystem/utils/scoreboard/Scoreboard.java | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/me/yaruma/fightsystem/FightSystem.java b/src/me/yaruma/fightsystem/FightSystem.java index 54b215a..11c6745 100644 --- a/src/me/yaruma/fightsystem/FightSystem.java +++ b/src/me/yaruma/fightsystem/FightSystem.java @@ -72,6 +72,7 @@ public class FightSystem extends JavaPlugin { plugin = this; this.fileManager = new FileManager(plugin); this.fightManager = new FightManager(); + this.scoreboard = new Scoreboard(plugin); //Load config schemsizeX = fileManager.getIntegerFromConfig("Arena.Schemsize.x"); diff --git a/src/me/yaruma/fightsystem/utils/scoreboard/Scoreboard.java b/src/me/yaruma/fightsystem/utils/scoreboard/Scoreboard.java index e019b8d..50a5610 100644 --- a/src/me/yaruma/fightsystem/utils/scoreboard/Scoreboard.java +++ b/src/me/yaruma/fightsystem/utils/scoreboard/Scoreboard.java @@ -39,9 +39,9 @@ public class Scoreboard { this.PREFIX = FightSystem.getPlugin().getFileManager().getStringFromConfig("Output.TeamRedColor"); this.NAME = FightSystem.getPlugin().getFileManager().getStringFromConfig("Output.TeamRedName"); } - if(getIndexDisplay(index) == Fight.redTeam) { - this.PREFIX = FightSystem.getPlugin().getFileManager().getStringFromConfig("Output.TeamRedColor"); - this.NAME = FightSystem.getPlugin().getFileManager().getStringFromConfig("Output.TeamRedName"); + if(getIndexDisplay(index) == Fight.blueTeam) { + this.PREFIX = FightSystem.getPlugin().getFileManager().getStringFromConfig("Output.TeamBlueColor"); + this.NAME = FightSystem.getPlugin().getFileManager().getStringFromConfig("Output.TeamBlueName"); } objective.setDisplaySlot(DisplaySlot.SIDEBAR);