1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-20 21:41:32 +02:00

Throw correct exceptions Test #943

This commit is contained in:
ementalo
2011-09-22 17:29:00 +01:00
parent ed9043c184
commit b0e2e4e1e7
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();
}
}