File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -39,8 +39,7 @@ public void AddCommands(Commands com)
3939
4040 var command = com ;
4141
42- Logger . LogInformation ( info . ArgCount . ToString ( ) ) ;
43- if ( info . ArgCount > 0 )
42+ if ( info . ArgCount > 1 )
4443 command = PluginGlobals . CustomCommands . Find ( x => x . Command . Contains ( aliases [ i ] ) ) ?? com ;
4544
4645 if ( command . Permission . PermissionList . Count > 0 && command . Permission != null )
@@ -70,12 +69,12 @@ public List<Commands> CheckForDuplicateCommands(List<Commands> comms)
7069
7170 foreach ( var alias in aliases )
7271 {
73- if ( commandNames . Contains ( alias ) )
72+ if ( commandNames . Contains ( alias . ToLower ( ) ) )
7473 {
7574 duplicateCommands . Add ( com ) ;
7675 continue ;
7776 }
78- commandNames . Add ( alias ) ;
77+ commandNames . Add ( alias . ToLower ( ) ) ;
7978 }
8079 }
8180
You can’t perform that action at this time.
0 commit comments