summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorementalo <suror@gmx.co.uk>2011-09-22 17:29:00 +0100
committerementalo <suror@gmx.co.uk>2011-09-22 17:29:00 +0100
commitb0e2e4e1e729f91583920fe1146eb4347a473393 (patch)
treeb516a84d9bce8c6fdc2caab139f1412f39dcdfd9
parented9043c184c71ac5c051368590076b2e9b37d6c3 (diff)
downloadEssentials-b0e2e4e1e729f91583920fe1146eb4347a473393.tar
Essentials-b0e2e4e1e729f91583920fe1146eb4347a473393.tar.gz
Essentials-b0e2e4e1e729f91583920fe1146eb4347a473393.tar.lz
Essentials-b0e2e4e1e729f91583920fe1146eb4347a473393.tar.xz
Essentials-b0e2e4e1e729f91583920fe1146eb4347a473393.zip
Throw correct exceptions Test #943
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandinvsee.java1
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandmail.java2
2 files changed, 2 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandinvsee.java b/Essentials/src/com/earth2me/essentials/commands/Commandinvsee.java
index 8b6dc8182..07710d40a 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandinvsee.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandinvsee.java
@@ -49,5 +49,6 @@ public class Commandinvsee extends EssentialsCommand
user.getInventory().setContents(invUserStack);
user.sendMessage(Util.format("invSee", invUser.getDisplayName()));
user.sendMessage(Util.i18n("invSeeHelp"));
+ throw new NoChargeException();
}
}
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandmail.java b/Essentials/src/com/earth2me/essentials/commands/Commandmail.java
index a98fabbd2..e08a6c8e5 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandmail.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandmail.java
@@ -64,6 +64,6 @@ public class Commandmail extends EssentialsCommand
user.setMails(null);
throw new Exception(Util.i18n("mailCleared"));
}
- throw new NotEnoughArgumentsException();
+ throw new NoChargeException();
}
}