mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-02-12 03:59:22 +00:00
fixes #268
This commit is contained in:
parent
c109f37bdd
commit
230102ef1f
1 changed files with 2 additions and 2 deletions
|
@ -70,10 +70,10 @@ public class Visit extends SubCommand {
|
|||
} catch (final Exception e) {
|
||||
return sendMessage(plr, C.NOT_VALID_NUMBER);
|
||||
}
|
||||
if ((i < 0) || (i >= plots.size())) {
|
||||
if ((i < 1) || (i > plots.size())) {
|
||||
return sendMessage(plr, C.NOT_VALID_NUMBER);
|
||||
}
|
||||
MainUtil.teleportPlayer(plr, plr.getLocation(), plots.get(i));
|
||||
MainUtil.teleportPlayer(plr, plr.getLocation(), plots.get(i - 1));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue