Command pagination

This commit is contained in:
cyberpwn
2021-08-28 22:34:05 -04:00
parent dd0b4f27d4
commit ae763ae25d
2 changed files with 151 additions and 87 deletions

View File

@@ -359,6 +359,18 @@ public class VirtualDecreeCommand {
return true;
}
else if(args.size() == 1)
{
for(String i : args)
{
if(i.startsWith("help="))
{
sender.sendDecreeHelp(this, Integer.parseInt(i.split("\\Q=\\E")[1])-1);
return true;
}
}
}
String head = args.get(0);
VirtualDecreeCommand match = matchNode(head, skip);