From 093b38c4c34e7e4452658887604c1973c87b6139 Mon Sep 17 00:00:00 2001 From: boy0001 Date: Sun, 19 Oct 2014 17:15:13 +1100 Subject: [PATCH] fixes --- .../src/com/intellectualcrafters/plot/commands/Kick.java | 2 +- .../src/com/intellectualcrafters/plot/commands/Purge.java | 2 +- PlotSquared/src/com/intellectualcrafters/plot/commands/Set.java | 2 +- .../src/com/intellectualcrafters/plot/commands/Setup.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/PlotSquared/src/com/intellectualcrafters/plot/commands/Kick.java b/PlotSquared/src/com/intellectualcrafters/plot/commands/Kick.java index f5d323172..d4c315096 100644 --- a/PlotSquared/src/com/intellectualcrafters/plot/commands/Kick.java +++ b/PlotSquared/src/com/intellectualcrafters/plot/commands/Kick.java @@ -40,7 +40,7 @@ public class Kick extends SubCommand { PlayerFunctions.sendMessage(plr, "&c/plot kick "); return false; } - if (Bukkit.getPlayer(args[0]) != null) { + if (Bukkit.getPlayer(args[0]) == null) { PlayerFunctions.sendMessage(plr, C.INVALID_PLAYER.s().replaceAll("%player%", args[0])); return false; } diff --git a/PlotSquared/src/com/intellectualcrafters/plot/commands/Purge.java b/PlotSquared/src/com/intellectualcrafters/plot/commands/Purge.java index 37fcbbd1b..7c483e223 100644 --- a/PlotSquared/src/com/intellectualcrafters/plot/commands/Purge.java +++ b/PlotSquared/src/com/intellectualcrafters/plot/commands/Purge.java @@ -22,7 +22,7 @@ import com.intellectualcrafters.plot.database.DBFunc; public class Purge extends SubCommand { public Purge() { - super("purge", "plots.admin", "Purge all plots for a world", "", "purge", CommandCategory.ACTIONS, false); + super("purge", "plots.admin", "Purge all plots for a world", "purge", "", CommandCategory.ACTIONS, false); } @Override diff --git a/PlotSquared/src/com/intellectualcrafters/plot/commands/Set.java b/PlotSquared/src/com/intellectualcrafters/plot/commands/Set.java index 1bc032a3a..50467f732 100644 --- a/PlotSquared/src/com/intellectualcrafters/plot/commands/Set.java +++ b/PlotSquared/src/com/intellectualcrafters/plot/commands/Set.java @@ -111,7 +111,7 @@ public class Set extends SubCommand { PlayerFunctions.sendMessage(plr, C.NOT_VALID_FLAG); return false; } - if (!plr.hasPermission("plots.set.flag" + args[1].toLowerCase())) { + if (!plr.hasPermission("plots.set.flag." + args[1].toLowerCase())) { PlayerFunctions.sendMessage(plr, C.NO_PERMISSION); return false; } diff --git a/PlotSquared/src/com/intellectualcrafters/plot/commands/Setup.java b/PlotSquared/src/com/intellectualcrafters/plot/commands/Setup.java index f04dede7c..1385e9b03 100644 --- a/PlotSquared/src/com/intellectualcrafters/plot/commands/Setup.java +++ b/PlotSquared/src/com/intellectualcrafters/plot/commands/Setup.java @@ -54,7 +54,7 @@ public class Setup extends SubCommand implements Listener { } public Setup() { - super("setup", "plots.admin", "Setup a PlotWorld", "setup {world}", "setup", CommandCategory.ACTIONS, false); + super("setup", "plots.admin", "Setup a PlotWorld", "setup {world} {generator}", "setup", CommandCategory.ACTIONS, false); } @Override