public IEnumerator <float> SpawnGhost(Exiled.API.Features.Player ply, float delay = 5) { yield return(Timing.WaitForSeconds(delay)); if (ply.Role == Plugin.GhostRole || ply.Role != RoleType.Spectator) { yield break; } ply.PlayGhostMessage(); ply.SpawnGhost(); yield return(Timing.WaitForSeconds(1f)); Plugin.Log.Debug($"{ply.Nickname} given the ghost spectator items."); ply.ClearInventory(); ply.AddItem(ItemType.Ammo762); ply.AddItem(ItemType.Ammo556); ply.AddItem(ItemType.Ammo9mm); ply.AddItem(ItemType.Flashlight); }