1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-21 05:51:56 +02:00

Fix the gap

This commit is contained in:
snowleo
2012-12-15 14:22:52 +01:00
parent 9f61f2241b
commit e018dede79

View File

@@ -98,7 +98,6 @@ public class Commandtp extends EssentialsCommand
throw new NotEnoughArgumentsException();
}
sender.sendMessage(_("teleporting"));
final User target = getPlayer(server, args, 0);
if (args.length == 2)
{
@@ -118,6 +117,9 @@ public class Commandtp extends EssentialsCommand
final Location location = new Location(target.getWorld(), x, y, z);
target.getTeleport().now(location, false, TeleportCause.COMMAND);
target.sendMessage(_("teleporting"));
} else {
throw new NotEnoughArgumentsException();
}
sender.sendMessage(_("teleporting"));
}
}