mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-27 07:11:04 -04:00
Botsummon should also set bot's pitch. (Thanks goodlyay)
This commit is contained in:
parent
659613b7f6
commit
11fc79ebad
@ -34,7 +34,7 @@ namespace MCGalaxy.Commands
|
|||||||
PlayerBot who = PlayerBot.Find(message);
|
PlayerBot who = PlayerBot.Find(message);
|
||||||
if (who == null) { Player.SendMessage(p, "There is no bot " + message + "!"); return; }
|
if (who == null) { Player.SendMessage(p, "There is no bot " + message + "!"); return; }
|
||||||
if (p.level != who.level) { Player.SendMessage(p, who.name + " is in a different level."); return; }
|
if (p.level != who.level) { Player.SendMessage(p, who.name + " is in a different level."); return; }
|
||||||
who.SetPos(p.pos[0], p.pos[1], p.pos[2], p.rot[0], 0);
|
who.SetPos(p.pos[0], p.pos[1], p.pos[2], p.rot[0], p.rot[1]);
|
||||||
}
|
}
|
||||||
public override void Help(Player p)
|
public override void Help(Player p)
|
||||||
{
|
{
|
||||||
|
@ -35,7 +35,7 @@ namespace MCGalaxy.Commands {
|
|||||||
if (lvl == null) { Player.SendMessage(p, "Level not found"); return; }
|
if (lvl == null) { Player.SendMessage(p, "Level not found"); return; }
|
||||||
string newName = args[1];
|
string newName = args[1];
|
||||||
if (!Player.ValidName(newName)) {
|
if (!Player.ValidName(newName)) {
|
||||||
Player.SendMessage("\"" + newName + "\" is not a valid level name."); return;
|
Player.SendMessage(p, "\"" + newName + "\" is not a valid level name."); return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (LevelInfo.ExistsOffline(newName)) { Player.SendMessage(p, "Level already exists."); return; }
|
if (LevelInfo.ExistsOffline(newName)) { Player.SendMessage(p, "Level already exists."); return; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user