From 6f255a8e378cb2fd5e7e6c3a76528c66d5834b5c Mon Sep 17 00:00:00 2001 From: Karl Essinger Date: Sun, 25 Jun 2023 23:35:40 +0200 Subject: [PATCH] Disabled the role change event to avoid an exiled server bug --- SCPDiscordPlugin/EventListeners/PlayerEventListener.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SCPDiscordPlugin/EventListeners/PlayerEventListener.cs b/SCPDiscordPlugin/EventListeners/PlayerEventListener.cs index be82a464..ce45d92b 100644 --- a/SCPDiscordPlugin/EventListeners/PlayerEventListener.cs +++ b/SCPDiscordPlugin/EventListeners/PlayerEventListener.cs @@ -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) @@ -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)