From 1f25b0b00bd8cc88931010956bc48784bd4bfbce Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Wed, 27 Mar 2013 20:36:56 +0100 Subject: [PATCH] Use positive page numbers when a player uses /mctop -1 --- .../java/com/gmail/nossr50/commands/player/MctopCommand.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/commands/player/MctopCommand.java b/src/main/java/com/gmail/nossr50/commands/player/MctopCommand.java index 4d9b63f22..476cb442f 100644 --- a/src/main/java/com/gmail/nossr50/commands/player/MctopCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/player/MctopCommand.java @@ -30,7 +30,7 @@ public class MctopCommand implements CommandExecutor { 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 class MctopCommand implements CommandExecutor { 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: