mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-23 04:32:50 -04:00
Make usafe of /last not show in /last. (Thanks Cecil)
This commit is contained in:
parent
7454a28965
commit
f4cb39acd4
@ -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);
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user