diff options
author | snowleo <schneeleo@gmail.com> | 2011-08-30 09:46:31 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-08-30 09:46:31 +0200 |
commit | e406d0c094098188b3456df1d4530e65c84f0780 (patch) | |
tree | 0a1bfbf94c90846f3227989fc843552298775b47 | |
parent | 60e2c57a33f0ec90e9cfa6f90d1716e882c61cf1 (diff) | |
download | Essentials-e406d0c094098188b3456df1d4530e65c84f0780.tar Essentials-e406d0c094098188b3456df1d4530e65c84f0780.tar.gz Essentials-e406d0c094098188b3456df1d4530e65c84f0780.tar.lz Essentials-e406d0c094098188b3456df1d4530e65c84f0780.tar.xz Essentials-e406d0c094098188b3456df1d4530e65c84f0780.zip |
Missing nochargeexception in /home and /world
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandhome.java | 1 | ||||
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandworld.java | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandhome.java b/Essentials/src/com/earth2me/essentials/commands/Commandhome.java index f556ea360..fbcaa555d 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandhome.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandhome.java @@ -58,5 +58,6 @@ public class Commandhome extends EssentialsCommand user.sendMessage(Util.format("homes", Util.joinList(homes))); } } + throw new NoChargeException(); } } diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandworld.java b/Essentials/src/com/earth2me/essentials/commands/Commandworld.java index 0a315b1d4..77db8e5e3 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandworld.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandworld.java @@ -47,7 +47,7 @@ public class Commandworld extends EssentialsCommand user.sendMessage(Util.i18n("invalidWorld")); user.sendMessage(Util.format("possibleWorlds", server.getWorlds().size() - 1)); user.sendMessage(Util.i18n("typeWorldName")); - return; + throw new NoChargeException(); } } @@ -71,5 +71,6 @@ public class Commandworld extends EssentialsCommand Trade charge = new Trade(this.getName(), ess); charge.isAffordableFor(user); user.getTeleport().teleport(loc, charge); + throw new NoChargeException(); } } |