Fixed /help output. (Thanks rjhazelwood)
This commit is contained in:
parent
f1d821a554
commit
cd539e0e7e
1 changed files with 4 additions and 4 deletions
|
|
@ -448,9 +448,9 @@ namespace TShockAPI
|
||||||
int page = 1;
|
int page = 1;
|
||||||
if (args.Message.Split(' ').Length == 2)
|
if (args.Message.Split(' ').Length == 2)
|
||||||
int.TryParse(args.Message.Split(' ')[1], out page);
|
int.TryParse(args.Message.Split(' ')[1], out page);
|
||||||
if (commands.Count > (20 * (page - 1)))
|
if (commands.Count > (15 * (page - 1)))
|
||||||
{
|
{
|
||||||
for (int j = (20 * (page - 1)); j < commands.Count; j++)
|
for (int j = (15 * (page - 1)); j < commands.Count; j++)
|
||||||
{
|
{
|
||||||
if (i == 3) break;
|
if (i == 3) break;
|
||||||
if (j == commands.Count - 1)
|
if (j == commands.Count - 1)
|
||||||
|
|
@ -461,7 +461,7 @@ namespace TShockAPI
|
||||||
if ((h - 1) % 5 == 0 && (h - 1) != 0)
|
if ((h - 1) % 5 == 0 && (h - 1) != 0)
|
||||||
{
|
{
|
||||||
Tools.SendMessage(ply, tempstring.TrimEnd(new char[] { ' ', ',' }), new float[] { 255f, 255f, 0f });
|
Tools.SendMessage(ply, tempstring.TrimEnd(new char[] { ' ', ',' }), new float[] { 255f, 255f, 0f });
|
||||||
tempstring = "";
|
tempstring = "/" + commands.Keys.ElementAt(j) + ", ";
|
||||||
i++;
|
i++;
|
||||||
h++;
|
h++;
|
||||||
}
|
}
|
||||||
|
|
@ -472,7 +472,7 @@ namespace TShockAPI
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (commands.Count > (20 * page))
|
if (commands.Count > (15 * page))
|
||||||
{ Tools.SendMessage(ply, "Type /help " + (page + 1).ToString() + " for more commands.", new float[] { 255f, 0f, 255f }); }
|
{ 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", new float[] { 255f, 255f, 0f });
|
Tools.SendMessage(ply, "/playing, /p, /me", new float[] { 255f, 255f, 0f });
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue