From e739ea0bf63dcaa89d74b7220976f9d60ac03075 Mon Sep 17 00:00:00 2001 From: drtshock Date: Mon, 20 Oct 2014 15:46:18 -0500 Subject: [PATCH] Add brackets in faction tag. U0.1.7 --- dependency-reduced-pom.xml | 2 +- pom.xml | 2 +- .../com/massivecraft/factions/scoreboards/FScoreboard.java | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dependency-reduced-pom.xml b/dependency-reduced-pom.xml index 8aec5118..5779312a 100644 --- a/dependency-reduced-pom.xml +++ b/dependency-reduced-pom.xml @@ -4,7 +4,7 @@ com.massivecraft Factions Factions - 1.6.9.5-U0.1.6 + 1.6.9.5-U0.1.7 ${basedir}/src/main/java clean package install diff --git a/pom.xml b/pom.xml index 18742471..58272ba5 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.massivecraft Factions - 1.6.9.5-U0.1.6 + 1.6.9.5-U0.1.7 jar Factions diff --git a/src/main/java/com/massivecraft/factions/scoreboards/FScoreboard.java b/src/main/java/com/massivecraft/factions/scoreboards/FScoreboard.java index 67328962..7a8ed402 100644 --- a/src/main/java/com/massivecraft/factions/scoreboards/FScoreboard.java +++ b/src/main/java/com/massivecraft/factions/scoreboards/FScoreboard.java @@ -2,6 +2,7 @@ package com.massivecraft.factions.scoreboards; import com.massivecraft.factions.*; import org.bukkit.Bukkit; +import org.bukkit.ChatColor; import org.bukkit.OfflinePlayer; import org.bukkit.entity.Player; import org.bukkit.scheduler.BukkitRunnable; @@ -162,7 +163,7 @@ public class FScoreboard { } // Update faction prefix - String prefix = faction.getTag().substring(0, Math.min(13, faction.getTag().length())) + " " + faction.getRelationTo(this.fplayer).getColor(); + String prefix = faction.getRelationTo(this.fplayer).getColor() + "[" + faction.getTag().substring(0, Math.min(9, faction.getTag().length())) + "] " + ChatColor.RESET; if (team.getPrefix() == null || !team.getPrefix().equals(prefix)) { team.setPrefix(prefix); }