File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 33using LabApi . Events . Handlers ;
44using LabApi . Features . Enums ;
55using LabApi . Features . Permissions ;
6- using LabApi . Features . Wrappers ;
76using SER . Code . Helpers . Extensions ;
87using SER . Code . Plugin . Commands ;
98using SER . Code . ScriptSystem ;
@@ -27,14 +26,14 @@ public static void CaptureComamnd(CommandExecutingEventArgs ev)
2726 {
2827 UsedCommandTypes [ ev . Sender ] = ev . CommandType ;
2928
30- if ( MainPlugin . Instance . Config ? . SerMethodsAsCommands != true )
29+ if ( MainPlugin . Instance . Config ? . MethodCommandPrefix is not true )
3130 {
3231 return ;
3332 }
3433
35- if ( Player . Get ( ev . Sender ) is { } player && player . HasPermissions ( MethodCommand . RunPermission ) )
34+ if ( ! ev . Sender . HasPermissions ( MethodCommand . RunPermission ) )
3635 {
37- return ;
36+ return ;
3837 }
3938
4039 if ( ! ev . CommandName . StartsWith ( ">" ) )
@@ -72,6 +71,7 @@ public static void CaptureComamnd(CommandExecutingEventArgs ev)
7271 return ;
7372 }
7473
74+ ev . Sender . Respond ( $ "Running method '{ methodName } '!") ;
7575 ev . IsAllowed = false ;
7676 script . Run ( ) ;
7777 }
You can’t perform that action at this time.
0 commit comments