Skip to content

Commit

Permalink
Remove '0' padding in /ping, since no one has any idea why it is there.
Browse files Browse the repository at this point in the history
  • Loading branch information
UnknownShadow200 committed Oct 7, 2017
1 parent 9aea2d7 commit 6f7d90c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions fCraft/Commands/InfoCommands.cs
Expand Up @@ -2084,12 +2084,9 @@ static void clpHandler(Player player, CommandReader cmd)
}

Player[] list = candidates.Skip(fixOffset(offset, candidates.Count())).Take(10).ToArray();
int pad = list[0].Ping.Format().Length;
player.Message("Ping/Latency List:");

player.Message("Ping/Latency List:");
for (int i = 0; i < list.Length; i++) {
player.Message(" &7{1}&S - {0}", list[i].Info.ClassyName,
list[i].Ping.Format().PadLeft(pad, '0'));
player.Message(" &7{1}&S - {0}", list[i].Info.ClassyName, list[i].Ping.Format());
}
player.Message("Showing players {0}-{1} (out of {2}).", offset + 1, offset + list.Length, candidates.Count());
}
Expand Down

0 comments on commit 6f7d90c

Please sign in to comment.