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)
39
39
40
40
var command = com ;
41
41
42
- Logger . LogInformation ( info . ArgCount . ToString ( ) ) ;
43
- if ( info . ArgCount > 0 )
42
+ if ( info . ArgCount > 1 )
44
43
command = PluginGlobals . CustomCommands . Find ( x => x . Command . Contains ( aliases [ i ] ) ) ?? com ;
45
44
46
45
if ( command . Permission . PermissionList . Count > 0 && command . Permission != null )
@@ -70,12 +69,12 @@ public List<Commands> CheckForDuplicateCommands(List<Commands> comms)
70
69
71
70
foreach ( var alias in aliases )
72
71
{
73
- if ( commandNames . Contains ( alias ) )
72
+ if ( commandNames . Contains ( alias . ToLower ( ) ) )
74
73
{
75
74
duplicateCommands . Add ( com ) ;
76
75
continue ;
77
76
}
78
- commandNames . Add ( alias ) ;
77
+ commandNames . Add ( alias . ToLower ( ) ) ;
79
78
}
80
79
}
81
80
You can’t perform that action at this time.
0 commit comments