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