/warp list only shows warps from current world

This commit is contained in:
Twitchy 2011-06-25 04:16:09 +12:00
parent efc36825a3
commit 7ddc74890b

View file

@ -820,6 +820,8 @@ namespace TShockAPI
if (WarpsManager.Warps.Count > (15 * (page - 1)))
{
for (int j = (15 * (page - 1)); j < (15 * page); j++)
{
if (WarpsManager.Warps[j].WorldWarpName == Main.worldName)
{
if (sb.Length != 0)
sb.Append(", ");
@ -836,6 +838,7 @@ namespace TShockAPI
}
}
}
}
if (WarpsManager.Warps.Count > (15 * page))
{
args.Player.SendMessage(string.Format("Type /warp list {0} for more warps.", (page + 1)), Color.Yellow);