Correction de bugs de /cubo

This commit is contained in:
Marc Baloup 2015-03-04 04:47:43 -05:00
parent 8ee8b09384
commit ab2860d326
2 changed files with 2 additions and 2 deletions

View File

@ -191,7 +191,7 @@ public class CommandCubo extends AbstractCommandExecutor {
if (args.length >= 3 && plugin.survivalCuboManager.hasStaffPermission(player)) { if (args.length >= 3 && plugin.survivalCuboManager.hasStaffPermission(player)) {
player_cubo = args[1]; player_cubo = args[1];
try { try {
num_page = Integer.parseInt(args[1]); num_page = Integer.parseInt(args[2]);
} catch (NumberFormatException e) { } catch (NumberFormatException e) {
player.sendMessage("Le troisième paramètre doit être un nombre entier"); player.sendMessage("Le troisième paramètre doit être un nombre entier");
} }

View File

@ -277,7 +277,7 @@ public class SurvivalCuboManager {
public boolean isOwner(Player p) { return isOwner(p.getName()); } 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() { public String getOwnerName() {
if (forSale()) return ""; if (forSale()) return "";
Set<String> pls = wgCubo.getOwners().getPlayers(); Set<String> pls = wgCubo.getOwners().getPlayers();