mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-22 20:16:36 -04:00
Show bot's skin in /whonick bot.
Sort of a hacky way to do it, but many people have asked for a way to see skins of bots. Might want to add /whois bot [botname] eventually. But with the prevalence of bots using nicknames, whonick seems easier user-side.
This commit is contained in:
parent
f81d87925d
commit
14c5364a16
@ -53,7 +53,7 @@ namespace MCGalaxy.Commands.Info {
|
||||
PlayerBot nick = FindBotNick(p, message);
|
||||
|
||||
if (nick == null) return;
|
||||
p.Message("This bot's real name is &1{0}%S, its nickname is {1}%S and its owner is {2}.", nick.name, nick.DisplayName, string.IsNullOrEmpty(nick.Owner) ? "no one" : nick.Owner);
|
||||
p.Message("This bot's real name is &1{0}%S, its nickname is {1}%S, its owner is {2} and its skin is {3}", nick.name, nick.DisplayName, string.IsNullOrEmpty(nick.Owner) ? "no one" : nick.Owner, nick.SkinName);
|
||||
}
|
||||
static PlayerBot FindBotNick(Player p, string nick) {
|
||||
nick = Colors.Strip(nick);
|
||||
|
Loading…
x
Reference in New Issue
Block a user