Skip to content

Commit afbeea6

Browse files
committed
Bugfixing laser's pull request
1 parent f8fa1e2 commit afbeea6

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

BetterDisarming.sln

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ Global
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

BetterDisarming/RoundEventHandler.cs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)