From 694dd0432e1fbb4748de78730d476f63b3d66698 Mon Sep 17 00:00:00 2001 From: boy0001 Date: Sun, 22 Feb 2015 00:58:59 +1100 Subject: [PATCH] We should redo the command alias things --- .../plot/commands/DEOP.java | 33 ------------------- .../plot/commands/OP.java | 33 ------------------- 2 files changed, 66 deletions(-) delete mode 100644 PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/DEOP.java delete mode 100644 PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/OP.java diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/DEOP.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/DEOP.java deleted file mode 100644 index f85c18882..000000000 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/DEOP.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.intellectualcrafters.plot.commands; - -import com.intellectualcrafters.plot.config.C; -import com.intellectualcrafters.plot.object.Plot; -import com.intellectualcrafters.plot.object.PlotPlayer; -import com.intellectualcrafters.plot.util.MainUtil; -import com.intellectualcrafters.plot.util.bukkit.BukkitPlayerFunctions; - -/** - * Created 2014-11-09 for PlotSquared - * - * @author Citymonstret - */ -public class DEOP extends SubCommand { - public DEOP() { - super(Command.DEOP, "Alias for /plot trusted remove", "/plot deop [player]", CommandCategory.ACTIONS, true); - } - - @Override - public boolean execute(final PlotPlayer plr, final String... args) { - if (args.length < 1) { - return MainUtil.sendMessage(plr, "&cUsage: &c" + this.usage); - } - if (!BukkitPlayerFunctions.isInPlot(plr)) { - return sendMessage(plr, C.NOT_IN_PLOT); - } - final Plot plot = MainUtil.getPlot(loc); - if (!plot.hasRights(plr)) { - return sendMessage(plr, C.NO_PLOT_PERMS); - } - return plr.performCommand("plot trusted remove " + args[0]); - } -} diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/OP.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/OP.java deleted file mode 100644 index 23e7aba06..000000000 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/OP.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.intellectualcrafters.plot.commands; - -import com.intellectualcrafters.plot.config.C; -import com.intellectualcrafters.plot.object.Plot; -import com.intellectualcrafters.plot.object.PlotPlayer; -import com.intellectualcrafters.plot.util.MainUtil; -import com.intellectualcrafters.plot.util.bukkit.BukkitPlayerFunctions; - -/** - * Created 2014-11-09 for PlotSquared - * - * @author Citymonstret - */ -public class OP extends SubCommand { - public OP() { - super(Command.OP, "Alias for /plot trusted add", "/plot op [player]", CommandCategory.ACTIONS, true); - } - - @Override - public boolean execute(final PlotPlayer plr, final String... args) { - if (args.length < 1) { - return MainUtil.sendMessage(plr, "&cUsage: &c" + this.usage); - } - if (!BukkitPlayerFunctions.isInPlot(plr)) { - return sendMessage(plr, C.NOT_IN_PLOT); - } - final Plot plot = MainUtil.getPlot(loc); - if (!plot.hasRights(plr)) { - return sendMessage(plr, C.NO_PLOT_PERMS); - } - return plr.performCommand("plot trusted add " + args[0]); - } -}