diff --git a/Commands.cs b/Commands.cs index cb194c9..50637f1 100644 --- a/Commands.cs +++ b/Commands.cs @@ -139,12 +139,7 @@ public bool Execute(ArraySegment arguments, ICommandSender sender, out s _ => RoleTypeId.FacilityGuard }; response = $"You became a {newRole}"; - scpPlayer.Role.Set(newRole, Exiled.API.Enums.SpawnReason.LateJoin, RoleSpawnFlags.All); - if (newRole is RoleTypeId.ClassD) - { - scpPlayer.AddItem(ItemType.Flashlight); - scpPlayer.AddItem(ItemType.Coin); - } + scpPlayer.Role.Set(newRole, Exiled.API.Enums.SpawnReason.LateJoin, RoleSpawnFlags.All); foreach (CustomRole custom in scpPlayer.GetCustomRoles()) custom.RemoveRole(scpPlayer); scpPlayer.Broadcast(10, Plugin.Singleton.Translation.BroadcastHeader + $"You became a {newRole.GetFullName()}");