Use ColoredName for /where bot (thanks AAA59)

This commit is contained in:
Goodlyay 2024-04-29 12:46:43 -07:00
parent b7c8b86e26
commit 981dc8186b

View File

@ -32,7 +32,7 @@ namespace MCGalaxy.Commands.Info
string botName = message.SplitSpaces(2)[1]; string botName = message.SplitSpaces(2)[1];
target = Matcher.FindBots(p, botName); target = Matcher.FindBots(p, botName);
if (target == null) return; if (target == null) return;
targetName = "Bot " + ((PlayerBot)target).DisplayName; targetName = "Bot " + ((PlayerBot)target).ColoredName;
} else { } else {
if (message.Length == 0) message = p.name; if (message.Length == 0) message = p.name;
target = PlayerInfo.FindMatches(p, message); target = PlayerInfo.FindMatches(p, message);