Skip to content

Commit aa4d639

Browse files
committed
Revert "feat: Adding base game All players spawned event for exiled (#558)"
This reverts commit ac64e92.
1 parent 98e025c commit aa4d639

2 files changed

Lines changed: 2 additions & 14 deletions

File tree

EXILED/Exiled.Events/Events.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ public override void OnEnabled()
7373
Handlers.Map.ChangedIntoGrenade += Handlers.Internal.ExplodingGrenade.OnChangedIntoGrenade;
7474

7575
CharacterClassManager.OnRoundStarted += Handlers.Server.OnRoundStarted;
76-
RoleAssigner.OnPlayersSpawned += Handlers.Server.OnAllPlayersSpawned;
7776
WaveManager.OnWaveSpawned += Handlers.Server.OnRespawnedTeam;
7877
InventorySystem.InventoryExtensions.OnItemAdded += Handlers.Player.OnItemAdded;
7978
InventorySystem.InventoryExtensions.OnItemRemoved += Handlers.Player.OnItemRemoved;
@@ -114,7 +113,6 @@ public override void OnDisabled()
114113

115114
InventorySystem.InventoryExtensions.OnItemAdded -= Handlers.Player.OnItemAdded;
116115
InventorySystem.InventoryExtensions.OnItemRemoved -= Handlers.Player.OnItemRemoved;
117-
RoleAssigner.OnPlayersSpawned -= Handlers.Server.OnAllPlayersSpawned;
118116
WaveManager.OnWaveSpawned -= Handlers.Server.OnRespawnedTeam;
119117
RagdollManager.OnRagdollSpawned -= Handlers.Internal.RagdollList.OnSpawnedRagdoll;
120118
RagdollManager.OnRagdollRemoved -= Handlers.Internal.RagdollList.OnRemovedRagdoll;
@@ -163,4 +161,4 @@ public void Unpatch()
163161
Log.Debug("All events have been unpatched complete. Goodbye!");
164162
}
165163
}
166-
}
164+
}

EXILED/Exiled.Events/Handlers/Server.cs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@ public static class Server
3232
/// </summary>
3333
public static Event RoundStarted { get; set; } = new();
3434

35-
/// <summary>
36-
/// Invoked after all players have spawned at the start of a new round.
37-
/// </summary>
38-
public static Event AllPlayersSpawned { get; set; } = new();
39-
4035
/// <summary>
4136
/// Invoked before ending a round.
4237
/// </summary>
@@ -142,11 +137,6 @@ public static class Server
142137
/// </summary>
143138
public static void OnRoundStarted() => RoundStarted.InvokeSafely();
144139

145-
/// <summary>
146-
/// Called after all players have spawned at the start of a new round.
147-
/// </summary>
148-
public static void OnAllPlayersSpawned() => AllPlayersSpawned.InvokeSafely();
149-
150140
/// <summary>
151141
/// Called before ending a round.
152142
/// </summary>
@@ -255,4 +245,4 @@ public static class Server
255245
/// <param name="ev">The <see cref="CompletingObjectiveEventArgs"/> instance.</param>
256246
public static void OnCompletingObjective(CompletingObjectiveEventArgs ev) => CompletingObjective.InvokeSafely(ev);
257247
}
258-
}
248+
}

0 commit comments

Comments
 (0)