mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 05:03:34 -04:00
Don't show + in offline names when possible
This commit is contained in:
parent
0082904fb5
commit
259380c9eb
@ -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;
|
||||
|
@ -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?
|
||||
}
|
||||
|
||||
|
||||
|
@ -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");
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user