mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-04 03:03: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()) {
 | 
					        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"),
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user