Skip to content

Commit dc0d359

Browse files
committed
Fixed responses in the Custom Teams commands
1 parent 07ddb4f commit dc0d359

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

LabExtended/Commands/Custom/CustomTeams/CustomTeamsCommand.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@ public void List()
2424

2525
Ok(x =>
2626
{
27+
x.AppendLine();
28+
2729
foreach (var pair in CustomTeamRegistry.RegisteredHandlers)
2830
{
29-
x.AppendLine($"- {pair.Key}: {pair.Value.Name ?? "(null)"}");
31+
x.AppendLine($"- {pair.Key.Name}: {pair.Value.Name ?? "(null)"}");
3032
}
3133
});
3234
}
@@ -51,6 +53,8 @@ public void Waves(
5153

5254
Ok(x =>
5355
{
56+
x.AppendLine();
57+
5458
foreach (var instance in instances)
5559
{
5660
x.AppendLine($"- {instance.Id}: Remaining players: {instance.AlivePlayers.Count} (spawned {Mathf.CeilToInt(instance.PassedTime)} seconds ago)");
@@ -85,6 +89,7 @@ public void Wave(
8589

8690
Ok(x =>
8791
{
92+
x.AppendLine();
8893
x.AppendLine($"ID: {instance.Id}");
8994
x.AppendLine($"Spawned At: {DateTime.Now.ToLocalTime().Subtract(TimeSpan.FromSeconds(instance.PassedTime)).ToString("HH:mm:ss zz")}");
9095
x.AppendLine($"Active For: {Mathf.CeilToInt(instance.PassedTime)} seconds");

0 commit comments

Comments
 (0)