File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed
Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 1111 Release| Any CPU = Release| Any CPU
1212 EndGlobalSection
1313 GlobalSection (ProjectConfigurationPlatforms ) = postSolution
14- {308F6F56-EE2A-456F-ADC8-995CF4BACA58} .Debug| Any CPU .ActiveCfg = Debug |Any CPU
15- {308F6F56-EE2A-456F-ADC8-995CF4BACA58} .Debug| Any CPU .Build .0 = Debug |Any CPU
14+ {308F6F56-EE2A-456F-ADC8-995CF4BACA58} .Debug| Any CPU .ActiveCfg = Release |Any CPU
15+ {308F6F56-EE2A-456F-ADC8-995CF4BACA58} .Debug| Any CPU .Build .0 = Release |Any CPU
1616 {308F6F56-EE2A-456F-ADC8-995CF4BACA58} .Release| Any CPU .ActiveCfg = Release| Any CPU
1717 {308F6F56-EE2A-456F-ADC8-995CF4BACA58} .Release| Any CPU .Build .0 = Release| Any CPU
1818 EndGlobalSection
Original file line number Diff line number Diff line change @@ -17,16 +17,16 @@ public RoundEventHandler(Plugin plugin)
1717
1818 public void OnDoorAccess ( PlayerDoorAccessEvent ev )
1919 {
20- if ( this . GetConfigBool ( "bd_prohibit_doors" ) )
20+ if ( plugin . GetConfigBool ( "bd_prohibit_doors" ) )
2121 {
2222 if ( ev . Player . IsHandcuffed ( ) )
2323 ev . Allow = false ;
24- }
24+ }
2525 }
2626
2727 public void OnElevatorUse ( PlayerElevatorUseEvent ev )
2828 {
29- if ( this . GetConfigBool ( "bd_prohibit_elevators" ) )
29+ if ( plugin . GetConfigBool ( "bd_prohibit_elevators" ) )
3030 {
3131 if ( ev . Player . IsHandcuffed ( ) )
3232 ev . AllowUse = false ;
@@ -35,17 +35,18 @@ public void OnElevatorUse(PlayerElevatorUseEvent ev)
3535
3636 public void OnCheckEscape ( PlayerCheckEscapeEvent ev )
3737 {
38- if ( this . GetConfigBool ( "bd_change_ci_escape" ) )
38+ if ( plugin . GetConfigBool ( "bd_change_ci_escape" ) )
3939 {
4040 if ( ev . Player . TeamRole . Role . Equals ( Role . CHAOS_INSUGENCY ) && ev . Player . IsHandcuffed ( ) )
4141 {
4242 ev . Player . ChangeRole ( Role . NTF_LIEUTENANT ) ;
4343 }
44- if ( this . GetConfigBool ( "bd_change_ntf_escape" ) )
45- {
46- if ( ev . Player . TeamRole . Role . Equals ( Team . NINETAILFOX ) && ev . Player . IsHandcuffed ( ) )
44+ if ( plugin . GetConfigBool ( "bd_change_ntf_escape" ) )
4745 {
48- ev . Player . ChangeRole ( Role . CHAOS_INSUGENCY ) ;
46+ if ( ev . Player . TeamRole . Role . Equals ( Team . NINETAILFOX ) && ev . Player . IsHandcuffed ( ) )
47+ {
48+ ev . Player . ChangeRole ( Role . CHAOS_INSUGENCY ) ;
49+ }
4950 }
5051 }
5152 }
You can’t perform that action at this time.
0 commit comments