From ab2860d326c31d678334e64de7566b8a74507042 Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Wed, 4 Mar 2015 04:47:43 -0500 Subject: [PATCH] Correction de bugs de /cubo --- .../java/plugin/pandacraftutils/commands/CommandCubo.java | 2 +- .../pandacraftutils/modules/protection/SurvivalCuboManager.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net/mc_pandacraft/java/plugin/pandacraftutils/commands/CommandCubo.java b/src/net/mc_pandacraft/java/plugin/pandacraftutils/commands/CommandCubo.java index 07135cc..f4107a6 100644 --- a/src/net/mc_pandacraft/java/plugin/pandacraftutils/commands/CommandCubo.java +++ b/src/net/mc_pandacraft/java/plugin/pandacraftutils/commands/CommandCubo.java @@ -191,7 +191,7 @@ public class CommandCubo extends AbstractCommandExecutor { if (args.length >= 3 && plugin.survivalCuboManager.hasStaffPermission(player)) { player_cubo = args[1]; try { - num_page = Integer.parseInt(args[1]); + num_page = Integer.parseInt(args[2]); } catch (NumberFormatException e) { player.sendMessage("Le troisième paramètre doit être un nombre entier"); } diff --git a/src/net/mc_pandacraft/java/plugin/pandacraftutils/modules/protection/SurvivalCuboManager.java b/src/net/mc_pandacraft/java/plugin/pandacraftutils/modules/protection/SurvivalCuboManager.java index e14e333..4712f53 100644 --- a/src/net/mc_pandacraft/java/plugin/pandacraftutils/modules/protection/SurvivalCuboManager.java +++ b/src/net/mc_pandacraft/java/plugin/pandacraftutils/modules/protection/SurvivalCuboManager.java @@ -277,7 +277,7 @@ public class SurvivalCuboManager { public boolean isOwner(Player p) { return isOwner(p.getName()); } - public boolean isOwner(String p) { return getOwnerName().equals(p); } + public boolean isOwner(String p) { return getOwnerName().equalsIgnoreCase(p); } public String getOwnerName() { if (forSale()) return ""; Set pls = wgCubo.getOwners().getPlayers();