command list is now sorted in alphabetical order

This commit is contained in:
ryannathans
2022-01-29 20:54:41 +11:00
committed by skelsoft
parent e7eec8153d
commit f8b9d7bd6a
@@ -177,7 +177,7 @@ class MiscCommandSet : CommandSet(Command.Privilege.ADMIN){
}
var lineid = 11
player.packetDispatch.sendString("Commands",Components.QUESTJOURNAL_SCROLL_275,2)
for(line in CommandMapping.getNames())
for(line in CommandMapping.getNames().sorted())
player.packetDispatch.sendString(line,Components.QUESTJOURNAL_SCROLL_275,lineid++)
player.interfaceManager.open(Component(Components.QUESTJOURNAL_SCROLL_275))
}