mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 14:46:45 +01:00
Fix index out of bounds for '/p h'
This commit is contained in:
parent
2676b76107
commit
8a77d5a450
@ -76,7 +76,7 @@ public class HomeCommand extends Command {
|
|||||||
if (plots.isEmpty()) {
|
if (plots.isEmpty()) {
|
||||||
player.sendMessage(TranslatableCaption.of("invalid.found_no_plots"));
|
player.sendMessage(TranslatableCaption.of("invalid.found_no_plots"));
|
||||||
return;
|
return;
|
||||||
} else if (plots.size() < page) {
|
} else if (plots.size() < page || page < 1) {
|
||||||
player.sendMessage(
|
player.sendMessage(
|
||||||
TranslatableCaption.of("invalid.number_not_in_range"),
|
TranslatableCaption.of("invalid.number_not_in_range"),
|
||||||
Template.of("min", "1"),
|
Template.of("min", "1"),
|
||||||
|
Loading…
Reference in New Issue
Block a user