Make usafe of /last not show in /last. (Thanks Cecil)

This commit is contained in:
UnknownShadow200 2017-11-17 12:13:25 +11:00
parent 7454a28965
commit f4cb39acd4
2 changed files with 2 additions and 2 deletions

View File

@ -709,7 +709,7 @@ namespace MCGalaxy {
bool UseCommand(Command command, string message) {
string cmd = command.name;
if (!cmd.CaselessEq("pass")) {
if (!cmd.CaselessEq("pass") && !cmd.CaselessEq("lastcmd")) {
lastCMD = message.Length == 0 ? cmd : cmd + " " + message;
lastCmdTime = DateTime.UtcNow;
Logger.Log(LogType.CommandUsage, "{0} used /{1} {2}", name, cmd, message);

View File

@ -152,7 +152,7 @@ namespace MCGalaxy {
Position pos = level.SpawnPos;
byte yaw = level.rotx, pitch = level.roty;
OnPlayerSpawningEvent.Call(this, ref pos, ref yaw, ref pitch, true);
OnPlayerSpawningEvent.Call(this, ref pos, ref yaw, ref pitch, false);
Pos = pos;
SetYawPitch(yaw, pitch);