mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-29 16:46:45 +01:00
fixes #268
This commit is contained in:
parent
c109f37bdd
commit
230102ef1f
@ -70,10 +70,10 @@ public class Visit extends SubCommand {
|
|||||||
} catch (final Exception e) {
|
} catch (final Exception e) {
|
||||||
return sendMessage(plr, C.NOT_VALID_NUMBER);
|
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);
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user