From e018dede7945b219fe890240d55cd1a66687dac9 Mon Sep 17 00:00:00 2001 From: snowleo Date: Sat, 15 Dec 2012 14:22:52 +0100 Subject: [PATCH] Fix the gap --- .../src/com/earth2me/essentials/commands/Commandtp.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandtp.java b/Essentials/src/com/earth2me/essentials/commands/Commandtp.java index 9f42283f1..64332be68 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandtp.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandtp.java @@ -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")); } }