mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 05:03:34 -04:00
Commands used on bots no longer message whole level
This commit is contained in:
parent
9ba8e05d32
commit
709fec39c8
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user