diff options
author | snowleo <schneeleo@gmail.com> | 2013-11-15 20:06:16 +0100 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2013-11-15 20:06:16 +0100 |
commit | 9b4e6e5dc6458a3ccb6d947ae9f23e049d71ede7 (patch) | |
tree | 5fb83cdeec7ffba2f62ca84efca0239260b1acd7 | |
parent | 53b1526906f80e7da20441a9b29c61557e8336ca (diff) | |
download | Essentials-9b4e6e5dc6458a3ccb6d947ae9f23e049d71ede7.tar Essentials-9b4e6e5dc6458a3ccb6d947ae9f23e049d71ede7.tar.gz Essentials-9b4e6e5dc6458a3ccb6d947ae9f23e049d71ede7.tar.lz Essentials-9b4e6e5dc6458a3ccb6d947ae9f23e049d71ede7.tar.xz Essentials-9b4e6e5dc6458a3ccb6d947ae9f23e049d71ede7.zip |
Fix fromIndex = -20
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandwarp.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandwarp.java b/Essentials/src/com/earth2me/essentials/commands/Commandwarp.java index 501aca36c..2c8f82673 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandwarp.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandwarp.java @@ -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])) { |