mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-15 05:33:40 +00:00
Fix fromIndex = -20
This commit is contained in:
parent
53b1526906
commit
9b4e6e5dc6
1 changed files with 4 additions and 4 deletions
|
@ -71,10 +71,6 @@ public class Commandwarp extends EssentialsCommand
|
||||||
private void warpList(final CommandSource sender, final String[] args, final IUser user) throws Exception
|
private void warpList(final CommandSource sender, final String[] args, final IUser user) throws Exception
|
||||||
{
|
{
|
||||||
final IWarps warps = ess.getWarps();
|
final IWarps warps = ess.getWarps();
|
||||||
if (warps.isEmpty())
|
|
||||||
{
|
|
||||||
throw new Exception(_("noWarpsDefined"));
|
|
||||||
}
|
|
||||||
final List<String> warpNameList = new ArrayList<String>(warps.getList());
|
final List<String> warpNameList = new ArrayList<String>(warps.getList());
|
||||||
|
|
||||||
if (user != null)
|
if (user != null)
|
||||||
|
@ -89,6 +85,10 @@ public class Commandwarp extends EssentialsCommand
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (warpNameList.isEmpty())
|
||||||
|
{
|
||||||
|
throw new Exception(_("noWarpsDefined"));
|
||||||
|
}
|
||||||
int page = 1;
|
int page = 1;
|
||||||
if (args.length > 0 && NumberUtil.isInt(args[0]))
|
if (args.length > 0 && NumberUtil.isInt(args[0]))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue