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:
Goodlyay 2019-10-12 15:04:47 -07:00
parent f81d87925d
commit 14c5364a16

View File

@ -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);