diff options
author | snowleo <schneeleo@gmail.com> | 2012-12-15 14:22:52 +0100 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2012-12-15 14:22:52 +0100 |
commit | 6bc3d7f0f4c0ebd29b1361dcdb1811c710885e4d (patch) | |
tree | abf4fb1cb9ff1221d688ecb4889f8ee38d837b5d | |
parent | e706614a3b82a7314f60c7cb23142e812fe7b1fb (diff) | |
download | Essentials-6bc3d7f0f4c0ebd29b1361dcdb1811c710885e4d.tar Essentials-6bc3d7f0f4c0ebd29b1361dcdb1811c710885e4d.tar.gz Essentials-6bc3d7f0f4c0ebd29b1361dcdb1811c710885e4d.tar.lz Essentials-6bc3d7f0f4c0ebd29b1361dcdb1811c710885e4d.tar.xz Essentials-6bc3d7f0f4c0ebd29b1361dcdb1811c710885e4d.zip |
Fix the gap
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandtp.java | 4 |
1 files changed, 3 insertions, 1 deletions
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")); } } |