Commands used on bots no longer message whole level

This commit is contained in:
Goodlyay 2017-03-04 00:06:09 -08:00
parent 9ba8e05d32
commit 709fec39c8
3 changed files with 3 additions and 4 deletions

View File

@ -46,7 +46,7 @@ namespace MCGalaxy.Commands.CPE {
bot.ModelBB = AABB.ModelAABB(model, bot.level);
Entities.UpdateModel(bot.id, model, bot.level, null);
Chat.MessageLevel(bot.level, "Bot " + bot.ColoredName + "'s %Smodel was changed to a &c" + model);
Player.SendMessage(p, "You changed the model of bot " + bot.ColoredName + " %Sto a &c" + model);
BotsFile.UpdateBot(bot);
}

View File

@ -41,7 +41,7 @@ namespace MCGalaxy.Commands.CPE {
string skin = GetSkin(p, args, 2, bot.name);
if (skin == null) return;
bot.SkinName = skin;
Chat.MessageLevel(bot.level, "Bot " + bot.ColoredName + "'s %Sskin was changed to &c" + skin);
Player.SendMessage(p, "You changed the skin of bot " + bot.ColoredName + " %Sto &c" + skin);
bot.GlobalDespawn();
bot.GlobalSpawn();
@ -71,7 +71,6 @@ namespace MCGalaxy.Commands.CPE {
static string GetSkin(Player p, string[] args, int i, string defSkin) {
string skin = args.Length > i ? args[i] : defSkin;
if (!Formatter.ValidName(p, skin, "skin")) return null;
if (skin[0] == '+')
skin = "http://skins.minecraft.net/MinecraftSkins/" + skin.Substring(1) + ".png";
return skin;

View File

@ -47,7 +47,7 @@ namespace MCGalaxy.Commands {
string nameTag = newName.CaselessEq("empty") ? "" : newName;
if (newName.Length > 62) { Player.Message(p, "Name must be 62 or fewer letters."); return; }
Chat.MessageLevel(bot.level, "Bot " + bot.ColoredName + "'s %Sname was set to " + nameTag + "%S.");
Player.SendMessage(p, "You changed the name of bot " + bot.ColoredName + " %Sto &c" + nameTag);
bot.DisplayName = Colors.EscapeColors(newName);
}