Skip to content

Commit

Permalink
Disabled the role change event to avoid an exiled server bug
Browse files Browse the repository at this point in the history
  • Loading branch information
KarlOfDuty committed Jul 3, 2023
1 parent d1ef2c3 commit 6f255a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SCPDiscordPlugin/EventListeners/PlayerEventListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ public void OnNicknameSet(PlayerNicknameSetEvent ev)
}
*/

[PluginEvent(ServerEventType.PlayerChangeRole)]
/*[PluginEvent(ServerEventType.PlayerChangeRole)]
public void OnSetRole(Player player, PlayerRoleBase oldRole, RoleTypeId newRole, RoleChangeReason changeReason)
{
if (newRole == RoleTypeId.None)
Expand Down Expand Up @@ -415,7 +415,7 @@ public void OnSetRole(Player player, PlayerRoleBase oldRole, RoleTypeId newRole,
default:
return;
}
}
}*/

[PluginEvent(ServerEventType.PlayerSpawn)]
public void OnSpawn(Player player, RoleTypeId role)
Expand Down

0 comments on commit 6f255a8

Please sign in to comment.