mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 15:16:45 +01:00
cmds
This commit is contained in:
parent
e3f7db4906
commit
83f7aa544d
@ -76,7 +76,7 @@ public class Auto extends SubCommand {
|
||||
|
||||
// TODO auto claim a mega plot with schematic
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
World world;
|
||||
int size_x = 1;
|
||||
int size_z = 1;
|
||||
|
@ -17,7 +17,7 @@ public class Ban extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
if (args.length < 1) {
|
||||
return BukkitPlayerFunctions.sendMessage(plr, "&cUsage: &c" + this.usage);
|
||||
}
|
||||
|
@ -46,7 +46,7 @@ public class Buy extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
if (!PlotSquared.useEconomy) {
|
||||
return sendMessage(plr, C.ECON_DISABLED);
|
||||
}
|
||||
|
@ -83,7 +83,7 @@ public class Claim extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
String schematic = "";
|
||||
if (args.length >= 1) {
|
||||
schematic = args[0];
|
||||
|
@ -38,7 +38,7 @@ public class Clear extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
if (plr == null) {
|
||||
// Is console
|
||||
if (args.length < 2) {
|
||||
|
@ -32,7 +32,7 @@ public class Clipboard extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
if (!currentSelection.containsKey(plr.getName())) {
|
||||
return sendMessage(plr, C.NO_CLIPBOARD);
|
||||
}
|
||||
|
@ -51,7 +51,7 @@ public class Cluster extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
// list, create, delete, resize, invite, kick, leave, helpers, tp, sethome
|
||||
if (args.length == 0) {
|
||||
// return arguments
|
||||
|
@ -39,7 +39,7 @@ public class Comment extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
if (!BukkitPlayerFunctions.isInPlot(plr)) {
|
||||
return sendMessage(plr, C.NOT_IN_PLOT);
|
||||
}
|
||||
|
@ -46,7 +46,7 @@ public class Condense extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
if (plr != null) {
|
||||
BukkitPlayerFunctions.sendMessage(plr, (C.NOT_CONSOLE));
|
||||
return false;
|
||||
|
@ -35,7 +35,7 @@ public class Copy extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
if (!BukkitPlayerFunctions.isInPlot(plr)) {
|
||||
BukkitPlayerFunctions.sendMessage(plr, C.NOT_IN_PLOT);
|
||||
return false;
|
||||
|
@ -36,7 +36,7 @@ public class CreateRoadSchematic extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player player, final String... args) {
|
||||
public boolean execute(final PlotPlayer player, final String... args) {
|
||||
if (!BukkitPlayerFunctions.isInPlot(player)) {
|
||||
MainUtil.sendMessage(BukkitUtil.getPlayer(player), C.NOT_IN_PLOT);
|
||||
return false;
|
||||
|
@ -17,7 +17,7 @@ public class DEOP extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
if (args.length < 1) {
|
||||
return BukkitPlayerFunctions.sendMessage(plr, "&cUsage: &c" + this.usage);
|
||||
}
|
||||
|
@ -71,7 +71,7 @@ public class Database extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
if (args.length < 1) {
|
||||
return sendMessage(plr, "/plot database [sqlite/mysql]");
|
||||
}
|
||||
|
@ -37,7 +37,7 @@ public class Debug extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
if ((args.length > 0) && args[0].equalsIgnoreCase("msg")) {
|
||||
final StringBuilder msg = new StringBuilder();
|
||||
for (final C c : C.values()) {
|
||||
|
@ -73,7 +73,7 @@ public class DebugClaimTest extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
if (plr == null) {
|
||||
if (args.length < 3) {
|
||||
return !BukkitPlayerFunctions.sendMessage(null, "If you accidentally delete your database, this command will attempt to restore all plots based on the data from the plot signs. \n\n&cMissing world arg /plot debugclaimtest {world} {PlotId min} {PlotId max}");
|
||||
|
@ -42,7 +42,7 @@ public class DebugClear extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
if (plr == null) {
|
||||
// Is console
|
||||
if (args.length < 2) {
|
||||
|
@ -50,7 +50,7 @@ public class DebugExec extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player player, final String... args) {
|
||||
public boolean execute(final PlotPlayer player, final String... args) {
|
||||
final List<String> allowed_params = Arrays.asList(new String[] { "stop-expire", "start-expire", "show-expired", "update-expired", "seen", "trim-check" });
|
||||
if (args.length > 0) {
|
||||
final String arg = args[0].toLowerCase();
|
||||
|
@ -42,7 +42,7 @@ public class DebugFixFlags extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
if (plr != null) {
|
||||
BukkitPlayerFunctions.sendMessage(plr, C.NOT_CONSOLE);
|
||||
return false;
|
||||
|
@ -37,7 +37,7 @@ public class DebugLoadTest extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
if (plr == null) {
|
||||
try {
|
||||
final Field fPlots = PlotSquared.class.getDeclaredField("plots");
|
||||
|
@ -38,7 +38,7 @@ public class DebugRoadRegen extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player player, final String... args) {
|
||||
public boolean execute(final PlotPlayer player, final String... args) {
|
||||
if (!(PlotSquared.getPlotWorld(player.getWorld()) instanceof HybridPlotWorld)) {
|
||||
return sendMessage(player, C.NOT_IN_PLOT_WORLD);
|
||||
}
|
||||
|
@ -38,7 +38,7 @@ public class DebugSaveTest extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
if (plr == null) {
|
||||
final ArrayList<Plot> plots = new ArrayList<Plot>();
|
||||
plots.addAll(PlotSquared.getPlots());
|
||||
|
@ -39,7 +39,7 @@ public class Delete extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
if (!BukkitPlayerFunctions.isInPlot(plr)) {
|
||||
return !sendMessage(plr, C.NOT_IN_PLOT);
|
||||
}
|
||||
|
@ -40,7 +40,7 @@ public class Denied extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
if (args.length < 2) {
|
||||
BukkitPlayerFunctions.sendMessage(plr, C.DENIED_NEED_ARGUMENT);
|
||||
return true;
|
||||
|
@ -44,7 +44,7 @@ public class FlagCmd extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player player, final String... args) {
|
||||
public boolean execute(final PlotPlayer player, final String... args) {
|
||||
/*
|
||||
* plot flag set fly true
|
||||
* plot flag remove fly
|
||||
|
@ -15,7 +15,7 @@ public class Help extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ public class Helpers extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
if (args.length < 2) {
|
||||
BukkitPlayerFunctions.sendMessage(plr, C.HELPER_NEED_ARGUMENT);
|
||||
return true;
|
||||
|
@ -46,7 +46,7 @@ public class Home extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, String... args) {
|
||||
public boolean execute(final PlotPlayer plr, String... args) {
|
||||
final Plot[] plots = PlotSquared.getPlots(plr).toArray(new Plot[0]);
|
||||
if (plots.length == 1) {
|
||||
PlotSquared.teleportPlayer(plr, plr.getLocation(), plots[0]);
|
||||
|
@ -43,7 +43,7 @@ public class Inbox extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
boolean report = false;
|
||||
if (args.length == 1) {
|
||||
if (args[0].equalsIgnoreCase("reports")) {
|
||||
|
@ -52,7 +52,7 @@ public class Info extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player player, String... args) {
|
||||
public boolean execute(final PlotPlayer player, String... args) {
|
||||
World world;
|
||||
Plot plot;
|
||||
if (player != null) {
|
||||
|
@ -35,7 +35,7 @@ public class Inventory extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
final ArrayList<SubCommand> cmds = new ArrayList<>();
|
||||
for (final SubCommand cmd : MainCommand.subCommands) {
|
||||
if (cmd.permission.hasPermission(plr)) {
|
||||
|
@ -36,7 +36,7 @@ public class Kick extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
if (!BukkitPlayerFunctions.isInPlot(plr)) {
|
||||
BukkitPlayerFunctions.sendMessage(plr, "You're not in a plot.");
|
||||
return false;
|
||||
|
@ -74,7 +74,7 @@ public class Merge extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
if (!BukkitPlayerFunctions.isInPlot(plr)) {
|
||||
BukkitPlayerFunctions.sendMessage(plr, C.NOT_IN_PLOT);
|
||||
return true;
|
||||
|
@ -38,7 +38,7 @@ public class Move extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
if (plr == null) {
|
||||
BukkitPlayerFunctions.sendMessage(plr, "MUST BE EXECUTED BY PLAYER");
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ public class MusicSubcommand extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player player, final String... args) {
|
||||
public boolean execute(final PlotPlayer player, final String... args) {
|
||||
if (!BukkitPlayerFunctions.isInPlot(player)) {
|
||||
sendMessage(player, C.NOT_IN_PLOT);
|
||||
return true;
|
||||
|
@ -17,7 +17,7 @@ public class OP extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
if (args.length < 1) {
|
||||
return BukkitPlayerFunctions.sendMessage(plr, "&cUsage: &c" + this.usage);
|
||||
}
|
||||
|
@ -35,7 +35,7 @@ public class Paste extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
if (!BukkitPlayerFunctions.isInPlot(plr)) {
|
||||
BukkitPlayerFunctions.sendMessage(plr, C.NOT_IN_PLOT);
|
||||
return false;
|
||||
|
@ -53,7 +53,7 @@ public class Purge extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
if (plr != null) {
|
||||
BukkitPlayerFunctions.sendMessage(plr, (C.NOT_CONSOLE));
|
||||
return false;
|
||||
|
@ -39,7 +39,7 @@ public class Rate extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
if (args.length < 1) {
|
||||
sendMessage(plr, C.RATING_NOT_VALID);
|
||||
return true;
|
||||
|
@ -39,7 +39,7 @@ public class RegenAllRoads extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player player, final String... args) {
|
||||
public boolean execute(final PlotPlayer player, final String... args) {
|
||||
if (player != null) {
|
||||
sendMessage(player, C.NOT_CONSOLE);
|
||||
return false;
|
||||
|
@ -34,7 +34,7 @@ public class Reload extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
try {
|
||||
// The following won't affect world generation, as that has to be
|
||||
// loaded during startup unfortunately.
|
||||
|
@ -55,7 +55,7 @@ public class Schematic extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
if (args.length < 1) {
|
||||
sendMessage(plr, C.SCHEMATIC_MISSING_ARG);
|
||||
return true;
|
||||
|
@ -64,7 +64,7 @@ public class Set extends SubCommand {
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
if (!BukkitPlayerFunctions.isInPlot(plr)) {
|
||||
BukkitPlayerFunctions.sendMessage(plr, C.NOT_IN_PLOT);
|
||||
return false;
|
||||
|
@ -51,7 +51,7 @@ public class SetOwner extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
final Plot plot = BukkitPlayerFunctions.getCurrentPlot(plr);
|
||||
if ((plot == null) || (plot.owner == null)) {
|
||||
BukkitPlayerFunctions.sendMessage(plr, C.NOT_IN_PLOT);
|
||||
|
@ -84,7 +84,7 @@ public class Setup extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
// going through setup
|
||||
final String name = plr.getName();
|
||||
if (!setupMap.containsKey(name)) {
|
||||
|
@ -44,7 +44,7 @@ public class Swap extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
if (args.length < 1) {
|
||||
BukkitPlayerFunctions.sendMessage(plr, C.NEED_PLOT_ID);
|
||||
BukkitPlayerFunctions.sendMessage(plr, C.SWAP_SYNTAX);
|
||||
|
@ -41,7 +41,7 @@ public class TP extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
if (args.length < 1) {
|
||||
BukkitPlayerFunctions.sendMessage(plr, C.NEED_PLOT_ID);
|
||||
return false;
|
||||
|
@ -35,7 +35,7 @@ public class Target extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
if (!PlotSquared.isPlotWorld(plr.getWorld())) {
|
||||
BukkitPlayerFunctions.sendMessage(plr, C.NOT_IN_PLOT_WORLD);
|
||||
return false;
|
||||
|
@ -40,7 +40,7 @@ public class Template extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
if (args.length != 2) {
|
||||
BukkitPlayerFunctions.sendMessage(plr, C.COMMAND_SYNTAX, "/plot template <import|export> <world>");
|
||||
return false;
|
||||
|
@ -61,7 +61,7 @@ public class Trim extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
if (plr != null) {
|
||||
BukkitPlayerFunctions.sendMessage(plr, (C.NOT_CONSOLE));
|
||||
return false;
|
||||
|
@ -40,7 +40,7 @@ public class Trusted extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
if (args.length < 2) {
|
||||
BukkitPlayerFunctions.sendMessage(plr, C.TRUSTED_NEED_ARGUMENT);
|
||||
return true;
|
||||
|
@ -17,7 +17,7 @@ public class Unban extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
if (args.length < 1) {
|
||||
return BukkitPlayerFunctions.sendMessage(plr, "&cUsage: &c" + this.usage);
|
||||
}
|
||||
|
@ -40,7 +40,7 @@ public class Unclaim extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
if (!BukkitPlayerFunctions.isInPlot(plr)) {
|
||||
return !sendMessage(plr, C.NOT_IN_PLOT);
|
||||
}
|
||||
|
@ -50,7 +50,7 @@ public class Unlink extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
if (!BukkitPlayerFunctions.isInPlot(plr)) {
|
||||
return sendMessage(plr, C.NOT_IN_PLOT);
|
||||
}
|
||||
@ -69,7 +69,7 @@ public class Unlink extends SubCommand {
|
||||
try {
|
||||
MainUtil.update(plr.getLocation());
|
||||
} catch (final Exception e) {
|
||||
// execute(final Player plr, final String... args) {
|
||||
// execute(final PlotPlayer plr, final String... args) {
|
||||
try {
|
||||
PlotSquared.log("Error on: " + getClass().getMethod("execute", Player.class, String[].class).toGenericString() + ":119, when trying to use \"SetBlockFast#update\"");
|
||||
} catch (final Exception ex) {
|
||||
|
@ -47,7 +47,7 @@ public class Visit extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
if (args.length < 1) {
|
||||
return sendMessage(plr, C.NEED_USER);
|
||||
}
|
||||
|
@ -24,6 +24,7 @@ import org.bukkit.entity.Player;
|
||||
|
||||
import com.intellectualcrafters.plot.BukkitMain;
|
||||
import com.intellectualcrafters.plot.PlotSquared;
|
||||
import com.intellectualcrafters.plot.object.PlotPlayer;
|
||||
import com.intellectualcrafters.plot.util.bukkit.BukkitPlayerFunctions;
|
||||
import com.intellectualcrafters.plot.util.bukkit.PWE;
|
||||
|
||||
@ -33,7 +34,7 @@ public class WE_Anywhere extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
if (PlotSquared.worldEdit == null) {
|
||||
BukkitPlayerFunctions.sendMessage(plr, "&cWorldEdit is not enabled on this server");
|
||||
return false;
|
||||
|
@ -56,7 +56,7 @@ public class list extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
if (args.length < 1) {
|
||||
final StringBuilder builder = new StringBuilder();
|
||||
builder.append(C.SUBCOMMAND_SET_OPTIONS_HEADER.s());
|
||||
|
@ -89,7 +89,7 @@ public class plugin extends SubCommand {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(final Player plr, final String... args) {
|
||||
public boolean execute(final PlotPlayer plr, final String... args) {
|
||||
Bukkit.getScheduler().runTaskAsynchronously(PlotSquared.getMain(), new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
|
Loading…
Reference in New Issue
Block a user