mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-04 02:53:43 +01:00 
			
		
		
		
	Use positive page numbers when a player uses /mctop -1
This commit is contained in:
		@@ -30,7 +30,7 @@ public class MctopCommand implements CommandExecutor {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
            case 1:
 | 
					            case 1:
 | 
				
			||||||
                if (StringUtils.isInt(args[0])) {
 | 
					                if (StringUtils.isInt(args[0])) {
 | 
				
			||||||
                    display(Integer.parseInt(args[0]), "ALL", sender, useMySQL, command);
 | 
					                    display(Math.abs(Integer.parseInt(args[0])), "ALL", sender, useMySQL, command);
 | 
				
			||||||
                    return true;
 | 
					                    return true;
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -50,7 +50,7 @@ public class MctopCommand implements CommandExecutor {
 | 
				
			|||||||
                    return true;
 | 
					                    return true;
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                display(Integer.parseInt(args[1]), skill.toString(), sender, useMySQL, command);
 | 
					                display(Math.abs(Integer.parseInt(args[1])), skill.toString(), sender, useMySQL, command);
 | 
				
			||||||
                return true;
 | 
					                return true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            default:
 | 
					            default:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user