temp solution for kicking

This commit is contained in:
Gurge44 committed 2026-06-02 17:19:44 +02:00
1 parent 7819572d1f
commit a8ac3e840a
20 files changed
+68 -61

No files matched your search

+1 -1
View File
@@ -851,7 +851,7 @@ public static class BedWars
NameNotifyManager.Notifies.Remove(pc.PlayerId);
RPC.PlaySoundRPC(pc.PlayerId, Sounds.TaskComplete);
pc.ReviveFromTemporaryExile();
pc.RpcSetColor(Team.GetColorId());
// pc.RpcSetColor(Team.GetColorId());
pc.TP(Base.SpawnPosition);
pc.SetChatVisible(true);
Utils.NotifyRoles(SpecifyTarget: pc, SendOption: SendOption.None);
+2 -2
View File
@@ -368,7 +368,7 @@ public static class CaptureTheFlag
players.Remove(player);
PlayerTeams[player.PlayerId] = CTFTeam.Blue;
bluePlayers.Add(player.PlayerId);
player.RpcSetColor(1);
// player.RpcSetColor(1);
yield return WaitFrameIfNecessary();
}
@@ -376,7 +376,7 @@ public static class CaptureTheFlag
{
PlayerTeams[player.PlayerId] = CTFTeam.Yellow;
yellowPlayers.Add(player.PlayerId);
player.RpcSetColor(5);
// player.RpcSetColor(5);
yield return WaitFrameIfNecessary();
}
+2 -2
View File
@@ -970,7 +970,7 @@ public static class KingOfTheZones
yield return null;
foreach (PlayerControl player in Main.EnumerateAlivePlayerControls())
/*foreach (PlayerControl player in Main.EnumerateAlivePlayerControls())
{
try
{
@@ -980,7 +980,7 @@ public static class KingOfTheZones
player.RpcSetColor(colorId);
}
catch (Exception e) { Utils.ThrowException(e); }
}
}*/
yield return null;
+2 -2
View File
@@ -329,7 +329,7 @@ public static class TheMindGame
foreach (PlayerControl pc in players)
{
Groups[pc.PlayerId] = group;
pc.RpcSetColor(group.GetColorId());
// pc.RpcSetColor(group.GetColorId());
pc.TP(location);
ids.Add(pc.PlayerId);
}
@@ -404,7 +404,7 @@ public static class TheMindGame
Round = 2;
DefaultColorIds.DoIf(x => x.Key && x.Value is >= byte.MinValue and <= byte.MaxValue, x => x.Key.RpcSetColor((byte)x.Value));
// DefaultColorIds.DoIf(x => x.Key && x.Value is >= byte.MinValue and <= byte.MaxValue, x => x.Key.RpcSetColor((byte)x.Value));
yield return NotifyEveryone("TMG.Notify.Round", 2, 2);
if (Stop) yield break;