Throw correct exceptions Test #943

This commit is contained in:
ementalo 2011-09-22 17:29:00 +01:00
parent e9c0bb2133
commit 2844af0039
2 changed files with 2 additions and 1 deletions

View File

@ -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();
}
}

View File

@ -64,6 +64,6 @@ public class Commandmail extends EssentialsCommand
user.setMails(null);
throw new Exception(Util.i18n("mailCleared"));
}
throw new NotEnoughArgumentsException();
throw new NoChargeException();
}
}