Permalink
Browse files

Use positive page numbers when a player uses /mctop -1

  • Loading branch information...
1 parent 0118346 commit 1f25b0b00bd8cc88931010956bc48784bd4bfbce @TfT-02 TfT-02 committed Mar 27, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/main/java/com/gmail/nossr50/commands/player/MctopCommand.java
@@ -30,7 +30,7 @@ public boolean onCommand(CommandSender sender, Command command, String label, St
case 1:
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;
}
@@ -50,7 +50,7 @@ public boolean onCommand(CommandSender sender, Command command, String label, St
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;
default:

0 comments on commit 1f25b0b

Please sign in to comment.