mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-09-06 04:58:00 +02:00
Throw correct exceptions Test #943
This commit is contained in:
parent
e9c0bb2133
commit
2844af0039
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -64,6 +64,6 @@ public class Commandmail extends EssentialsCommand
|
||||
user.setMails(null);
|
||||
throw new Exception(Util.i18n("mailCleared"));
|
||||
}
|
||||
throw new NotEnoughArgumentsException();
|
||||
throw new NoChargeException();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user