Skip to content
Permalink
Browse files

Allow relative tp in /tpp, and fix a minor spelling error

  • Loading branch information...
UnknownShadow200 committed Sep 28, 2017
1 parent 0282666 commit 197e0a8c6dc720f65669b3d4543f184837a04fb8
Showing with 4 additions and 2 deletions.
  1. +4 −2 fCraft/Commands/ModerationCommands.cs
@@ -1602,7 +1602,7 @@ static void UnfreezeHandler(Player player, CommandReader cmd)
player.LastPosition = player.Position;
}
player.TeleportTo(pos);
player.Message("Teleported to {0}'s last black change", info.Name);
player.Message("Teleported to {0}'s last block change", info.Name);
return;
} else {
player.Message("That users last known position is not on this world");
@@ -1617,7 +1617,9 @@ static void UnfreezeHandler(Player player, CommandReader cmd)
}
cmd.Rewind();

if (cmd.NextInt(out x) && cmd.NextInt(out y) && cmd.NextInt(out z)) {
if (cmd.NextCoord(player.Position.X, out x)
&& cmd.NextCoord(player.Position.Y, out y)
&& cmd.NextCoord(player.Position.Z, out z)) {
if (cmd.NextInt(out rot) && cmd.NextInt(out lot)) {
if (rot < 0 || rot > 255) {
player.Message("R must be inbetween 0 and 255, using player R");

0 comments on commit 197e0a8

Please sign in to comment.
You can’t perform that action at this time.