File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 27
27
" sv_cheats 1" ,
28
28
" sv_falldamage_scale 0" ,
29
29
" sv_party_mode 1" ,
30
- " mp_freezetime 2.5 " ,
31
- " mp_round_restart_delay 2.5 " ,
30
+ " mp_freezetime 1 " ,
31
+ " mp_round_restart_delay 2" ,
32
32
" cl_ragdoll_gravity 0" ,
33
33
" sv_accelerate 10" ,
34
34
" sv_airaccelerate 1400" ,
35
- " sv_gravity 800.0"
35
+ " sv_gravity 800.0" ,
36
+ " say hello"
36
37
],
37
38
"Permission" : {
38
39
"ReguiresAllPermissions" : false ,
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ private void RegisterListeners()
27
27
28
28
} ) ;
29
29
}
30
+
30
31
private void AddCommands ( Commands com )
31
32
{
32
33
string [ ] aliases = com . Command . Split ( ',' ) ;
@@ -47,20 +48,21 @@ private void AddCommands(Commands com)
47
48
48
49
private bool RequiresPermissions ( CCSPlayerController player , PermissionsElement permissions )
49
50
{
50
- if ( ! permissions . ReguiresAllPermissions )
51
+ if ( permissions . ReguiresAllPermissions )
51
52
{
52
53
foreach ( var permission in permissions . PermissionList )
53
54
{
54
- if ( AdminManager . PlayerHasPermissions ( player , new string [ ] { permission } ) ) return true ;
55
+ if ( AdminManager . PlayerHasPermissions ( player , new string [ ] { permission } ) )
56
+ return true ;
55
57
}
56
- PrintToChat ( Receiver . Client , player , "You don't have the required permissions to execute this command " ) ;
58
+ PrintToChat ( Receiver . Client , player , "You don't have the required permissions to execute this command1 " ) ;
57
59
return false ;
58
60
}
59
61
else
60
62
{
61
63
if ( ! AdminManager . PlayerHasPermissions ( player , permissions . PermissionList . ToArray ( ) ) )
62
64
{
63
- PrintToChat ( Receiver . Client , player , "You don't have the required permissions to execute this command " ) ;
65
+ PrintToChat ( Receiver . Client , player , "You don't have the required permissions to execute this command2 " ) ;
64
66
return false ;
65
67
}
66
68
return true ;
You can’t perform that action at this time.
0 commit comments