Add brackets in faction tag. U0.1.7
This commit is contained in:
parent
49babcd4e8
commit
e739ea0bf6
@ -4,7 +4,7 @@
|
|||||||
<groupId>com.massivecraft</groupId>
|
<groupId>com.massivecraft</groupId>
|
||||||
<artifactId>Factions</artifactId>
|
<artifactId>Factions</artifactId>
|
||||||
<name>Factions</name>
|
<name>Factions</name>
|
||||||
<version>1.6.9.5-U0.1.6</version>
|
<version>1.6.9.5-U0.1.7</version>
|
||||||
<build>
|
<build>
|
||||||
<sourceDirectory>${basedir}/src/main/java</sourceDirectory>
|
<sourceDirectory>${basedir}/src/main/java</sourceDirectory>
|
||||||
<defaultGoal>clean package install</defaultGoal>
|
<defaultGoal>clean package install</defaultGoal>
|
||||||
|
2
pom.xml
2
pom.xml
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
<groupId>com.massivecraft</groupId>
|
<groupId>com.massivecraft</groupId>
|
||||||
<artifactId>Factions</artifactId>
|
<artifactId>Factions</artifactId>
|
||||||
<version>1.6.9.5-U0.1.6</version>
|
<version>1.6.9.5-U0.1.7</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<name>Factions</name>
|
<name>Factions</name>
|
||||||
|
@ -2,6 +2,7 @@ package com.massivecraft.factions.scoreboards;
|
|||||||
|
|
||||||
import com.massivecraft.factions.*;
|
import com.massivecraft.factions.*;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
|
import org.bukkit.ChatColor;
|
||||||
import org.bukkit.OfflinePlayer;
|
import org.bukkit.OfflinePlayer;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.scheduler.BukkitRunnable;
|
import org.bukkit.scheduler.BukkitRunnable;
|
||||||
@ -162,7 +163,7 @@ public class FScoreboard {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Update faction prefix
|
// 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)) {
|
if (team.getPrefix() == null || !team.getPrefix().equals(prefix)) {
|
||||||
team.setPrefix(prefix);
|
team.setPrefix(prefix);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user