Show /report and /reportclose command usage when attempting to use the command incorrectly

This commit is contained in:
Keir Nellyer 2016-07-27 15:45:12 +01:00
parent 2a167745a6
commit 63917297ef
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ public class ReportCloseCommand extends CommandBase<ReportPlugin>
{
if (args == null || args.length < 1)
{
UtilPlayer.message(player, F.main(Plugin.getName(), C.cRed + "Your arguments are inappropriate for this command!"));
UtilPlayer.message(player, F.main(Plugin.getName(), C.cRed + "Invalid Usage: " + F.elem("/reportclose <conclusion>")));
}
else
{

View File

@ -30,7 +30,7 @@ public class ReportCommand extends CommandBase<ReportPlugin>
}
else if(args == null || args.length < 2)
{
UtilPlayer.message(player, F.main(Plugin.getName(), C.cRed + "Your arguments are inappropriate for this command!"));
UtilPlayer.message(player, F.main(Plugin.getName(), C.cRed + "Invalid Usage: " + F.elem("/report <player> <reason>")));
}
else
{