Skip to content
This repository was archived by the owner on Sep 15, 2024. It is now read-only.

Commit 15ccc6a

Browse files
Change debug cmd
1 parent 5fba869 commit 15ccc6a

1 file changed

Lines changed: 7 additions & 14 deletions

File tree

Scripts/Msc/Commands/CommandDebug.cs

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,15 @@ public override void Run(string[] args)
1313
{
1414
// debug command
1515
// do debug stuff here
16-
/*if (args.Length == 0)
16+
if (args.Length == 0)
1717
return;
1818

19-
if (!int.TryParse(args[0], out int result))
20-
return;
21-
22-
if (NetworkManager.GameServer.Running)
23-
{
24-
NetworkManager.GameServer.EmitClientTransforms.Stop();
25-
NetworkManager.GameServer.EmitClientTransforms.SetDelay(result);
26-
NetworkManager.GameServer.EmitClientTransforms.Start();
27-
}
28-
29-
TEST_VALUE = result;
30-
31-
Utils.Log("Set test value to " + result);*/
19+
if (args[0] == "a")
20+
if (NetworkManager.GameServer != null)
21+
if (NetworkManager.GameServer.IsRunning)
22+
{
23+
Logger.LogDebug(NetworkManager.GameServer.Players.Print());
24+
}
3225
}
3326
}
3427
}

0 commit comments

Comments
 (0)