diff options
author | snowleo <schneeleo@gmail.com> | 2011-08-30 03:15:50 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-08-30 03:15:50 +0200 |
commit | e9a14b204f1e7991d3b990c7f120ee2b02880fb1 (patch) | |
tree | ff7d7f23d32561f7ff74be06d272c595a0c5f51b | |
parent | 1cbdbc40a5c564df2378a72f0f3d7a08b5acb00e (diff) | |
download | Essentials-e9a14b204f1e7991d3b990c7f120ee2b02880fb1.tar Essentials-e9a14b204f1e7991d3b990c7f120ee2b02880fb1.tar.gz Essentials-e9a14b204f1e7991d3b990c7f120ee2b02880fb1.tar.lz Essentials-e9a14b204f1e7991d3b990c7f120ee2b02880fb1.tar.xz Essentials-e9a14b204f1e7991d3b990c7f120ee2b02880fb1.zip |
NoChargeException for teleport commands
-rw-r--r-- | Essentials/src/com/earth2me/essentials/Essentials.java | 5 | ||||
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/NoChargeException.java | 10 |
2 files changed, 15 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/Essentials.java b/Essentials/src/com/earth2me/essentials/Essentials.java index 883389625..3ea10f64a 100644 --- a/Essentials/src/com/earth2me/essentials/Essentials.java +++ b/Essentials/src/com/earth2me/essentials/Essentials.java @@ -28,6 +28,7 @@ import org.bukkit.*; import org.bukkit.command.Command; import org.bukkit.command.CommandSender; import com.earth2me.essentials.commands.IEssentialsCommand; +import com.earth2me.essentials.commands.NoChargeException; import com.earth2me.essentials.commands.NotEnoughArgumentsException; import com.earth2me.essentials.register.payment.Methods; import com.earth2me.essentials.signs.SignBlockListener; @@ -451,6 +452,10 @@ public class Essentials extends JavaPlugin implements IEssentials } return true; } + catch (NoChargeException ex) + { + return true; + } catch (NotEnoughArgumentsException ex) { sender.sendMessage(command.getDescription()); diff --git a/Essentials/src/com/earth2me/essentials/commands/NoChargeException.java b/Essentials/src/com/earth2me/essentials/commands/NoChargeException.java new file mode 100644 index 000000000..bb0088792 --- /dev/null +++ b/Essentials/src/com/earth2me/essentials/commands/NoChargeException.java @@ -0,0 +1,10 @@ +package com.earth2me.essentials.commands; + + +public class NoChargeException extends Exception +{ + public NoChargeException() + { + super("Will charge later"); + } +} |