mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00:00
Throw correct exceptions Test #943
This commit is contained in:
parent
e9c0bb2133
commit
2844af0039
2 changed files with 2 additions and 1 deletions
|
@ -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 a new issue