Skip to content
Permalink
Browse files

Remove '0' padding in /ping, since no one has any idea why it is there.

  • Loading branch information...
UnknownShadow200 committed Oct 7, 2017
1 parent 9aea2d7 commit 6f7d90c5b5252487c0b29e29c9f98cb2f28edb42
Showing with 2 additions and 5 deletions.
  1. +2 −5 fCraft/Commands/InfoCommands.cs
@@ -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());
}

0 comments on commit 6f7d90c

Please sign in to comment.
You can’t perform that action at this time.