From f8b9d7bd6a0a97248334d910dbb3d4b573bd4be2 Mon Sep 17 00:00:00 2001 From: ryannathans <2804894-ryannathans@users.noreply.gitlab.com> Date: Sat, 29 Jan 2022 20:54:41 +1100 Subject: [PATCH] command list is now sorted in alphabetical order --- .../main/kotlin/rs09/game/system/command/sets/MiscCommandSet.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/src/main/kotlin/rs09/game/system/command/sets/MiscCommandSet.kt b/Server/src/main/kotlin/rs09/game/system/command/sets/MiscCommandSet.kt index a67ab5557..e126e164a 100644 --- a/Server/src/main/kotlin/rs09/game/system/command/sets/MiscCommandSet.kt +++ b/Server/src/main/kotlin/rs09/game/system/command/sets/MiscCommandSet.kt @@ -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)) }