1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-14 02:24:16 +02:00

Fix fromIndex = -20

This commit is contained in:
snowleo
2013-11-15 20:06:16 +01:00
parent 011321c487
commit be0401d049

View File

@@ -71,10 +71,6 @@ public class Commandwarp extends EssentialsCommand
private void warpList(final CommandSource sender, final String[] args, final IUser user) throws Exception
{
final IWarps warps = ess.getWarps();
if (warps.isEmpty())
{
throw new Exception(_("noWarpsDefined"));
}
final List<String> warpNameList = new ArrayList<String>(warps.getList());
if (user != null)
@@ -89,6 +85,10 @@ public class Commandwarp extends EssentialsCommand
}
}
}
if (warpNameList.isEmpty())
{
throw new Exception(_("noWarpsDefined"));
}
int page = 1;
if (args.length > 0 && NumberUtil.isInt(args[0]))
{