Don't show + in offline names when possible

This commit is contained in:
UnknownShadow200 2017-05-06 16:26:11 +10:00
parent 0082904fb5
commit 259380c9eb
3 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@ namespace MCGalaxy.Commands.Economic {
if (p == null) {
data.SourceRaw = "(console)"; data.Source = "(console)";
} else {
data.SourceRaw = p.color + p.name; data.Source = p.ColoredName;
data.SourceRaw = p.color + p.truename; data.Source = p.ColoredName;
}
int amount = 0;

View File

@ -35,7 +35,7 @@ namespace MCGalaxy {
public static string GetColoredName(Player p, string name) {
Player target = FindExact(name);
return target != null && Entities.CanSee(p, target) ?
target.ColoredName : GetColor(name) + name; // TODO: select color from database?
target.ColoredName : GetColor(name) + name.RemoveLastPlus(); // TODO: select color from database?
}

View File

@ -78,7 +78,7 @@ namespace MCGalaxy {
int matches = 0;
return Find<Group>(p, name, out matches, Group.GroupList,
null, g => g.name, "ranks");
null, g => Colors.StripColors(g.name), "ranks");
}