Show /report and /reportclose command usage when attempting to use the command incorrectly
This commit is contained in:
parent
2a167745a6
commit
63917297ef
@ -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
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user