File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
NebulaWorld/Chat/Commands Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -43,16 +43,12 @@ private static string GetCommandDetailsOutput(string commandName)
4343 string aliasList = ChatCommandRegistry . GetCommandAliases ( commandName ) . Join ( FullCommandName ) ;
4444
4545 StringBuilder sb = new StringBuilder ( ) ;
46- foreach ( string usage in handler . GetUsage ( ) )
46+ sb . Append ( $ "Command { commandName } - { handler . GetDescription ( ) } \n ") ;
47+ sb . Append ( $ "Aliases: { aliasList } \n ") ;
48+ foreach ( string usage in handler . GetUsage ( ) )
4749 {
4850 sb . Append ( $ "Usage: { FullCommandName ( commandName ) } { usage } \n ") ;
4951 }
50- string usageString = sb . ToString ( ) ;
51-
52- sb . Clear ( ) ;
53- sb . Append ( $ "Command { commandName } - { handler . GetDescription ( ) } \n ") ;
54- sb . Append ( $ "Aliases: { aliasList } \n ") ;
55- sb . Append ( $ "{ usageString } ") ;
5652 return sb . ToString ( ) ;
5753 }
5854
You can’t perform that action at this time.
0 commit comments