Fixed /help <page>
This commit is contained in:
parent
e034747394
commit
4eea752b3d
1 changed files with 8 additions and 3 deletions
|
|
@ -347,9 +347,14 @@ namespace TShockAPI
|
||||||
for (int j = (20 * (page - 1)); j < commands.Count; j++)
|
for (int j = (20 * (page - 1)); j < commands.Count; j++)
|
||||||
{
|
{
|
||||||
if (i == 3) break;
|
if (i == 3) break;
|
||||||
|
if (j == commands.Count - 1)
|
||||||
|
{
|
||||||
|
tempstring += "/" + commands.Keys.ElementAt(j) + ", ";
|
||||||
|
Tools.SendMessage(ply, tempstring.TrimEnd(new char[] { ' ', ',' }), new float[] { 255f, 255f, 0f });
|
||||||
|
}
|
||||||
if ((h - 1) % 5 == 0 && (h - 1) != 0)
|
if ((h - 1) % 5 == 0 && (h - 1) != 0)
|
||||||
{
|
{
|
||||||
Tools.SendMessage(ply, tempstring.TrimEnd(new char[] { ' ', ','}));
|
Tools.SendMessage(ply, tempstring.TrimEnd(new char[] { ' ', ',' }), new float[] { 255f, 255f, 0f });
|
||||||
tempstring = "";
|
tempstring = "";
|
||||||
i++;
|
i++;
|
||||||
h++;
|
h++;
|
||||||
|
|
@ -362,9 +367,9 @@ namespace TShockAPI
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (commands.Count > (20 * page))
|
if (commands.Count > (20 * page))
|
||||||
Tools.SendMessage(ply, "Type /help " + (page + 1).ToString() + " for more commands");
|
{ Tools.SendMessage(ply, "Type /help " + (page + 1).ToString() + " for more commands.", new float[] { 255f, 0f, 255f }); }
|
||||||
Tools.SendMessage(ply, "Terraria commands:");
|
Tools.SendMessage(ply, "Terraria commands:");
|
||||||
Tools.SendMessage(ply, "/playing, /p, /me");
|
Tools.SendMessage(ply, "/playing, /p, /me", new float[] { 255f, 255f, 0f });
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue