mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-02 17:09:58 +01: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.getInventory().setContents(invUserStack);
|
||||||
user.sendMessage(Util.format("invSee", invUser.getDisplayName()));
|
user.sendMessage(Util.format("invSee", invUser.getDisplayName()));
|
||||||
user.sendMessage(Util.i18n("invSeeHelp"));
|
user.sendMessage(Util.i18n("invSeeHelp"));
|
||||||
|
throw new NoChargeException();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -64,6 +64,6 @@ public class Commandmail extends EssentialsCommand
|
|||||||
user.setMails(null);
|
user.setMails(null);
|
||||||
throw new Exception(Util.i18n("mailCleared"));
|
throw new Exception(Util.i18n("mailCleared"));
|
||||||
}
|
}
|
||||||
throw new NotEnoughArgumentsException();
|
throw new NoChargeException();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user