Correction de bugs de /cubo
This commit is contained in:
parent
8ee8b09384
commit
ab2860d326
@ -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");
|
||||||
}
|
}
|
||||||
|
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user