Fixes /who -i and /userinfo. Also updates the submodule.

This commit is contained in:
Enerdy 2015-07-09 03:23:37 +01:00
parent 4ad083dd0a
commit 6495496cd4
3 changed files with 21 additions and 22 deletions

View file

@ -81,17 +81,17 @@ namespace TShockAPI
foreach (TSPlayer ply in TShock.Players)
{
if (ply != null && ply.Active)
if (ply != null && ply.Active)
{
if (includeIDs)
{
if (includeIDs)
{
players.Add(ply.Name + " (IX: " + ply.Index + ", ID: " + ply.User.ID + ")");
}
else
{
players.Add(ply.Name);
}
players.Add(String.Format("{0} (IX: {1}{2})", ply.Name, ply.Index, ply.User != null ? ", ID: " + ply.User.ID : ""));
}
else
{
players.Add(ply.Name);
}
}
}
return players;