mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 15:16:45 +01:00
Console for every command (we will test what works)
This commit is contained in:
parent
3a15254d8d
commit
8344903c50
@ -43,7 +43,7 @@ import java.util.UUID;
|
||||
usage = "/plot add <player>",
|
||||
category = CommandCategory.ACTIONS,
|
||||
permission = "plots.add",
|
||||
requiredType = RequiredType.PLAYER
|
||||
requiredType = RequiredType.NONE
|
||||
)
|
||||
public class Add extends SubCommand {
|
||||
|
||||
|
@ -34,7 +34,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
|
||||
command = "auto",
|
||||
permission = "plots.auto",
|
||||
category = CommandCategory.CLAIMING,
|
||||
requiredType = RequiredType.PLAYER,
|
||||
requiredType = RequiredType.NONE,
|
||||
description = "Claim the nearest plot",
|
||||
aliases = {"a"},
|
||||
usage = "/plot auto"
|
||||
|
@ -39,7 +39,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
|
||||
usage = "/plot buy",
|
||||
permission = "plots.buy",
|
||||
category = CommandCategory.CLAIMING,
|
||||
requiredType = RequiredType.PLAYER
|
||||
requiredType = RequiredType.NONE
|
||||
)
|
||||
public class Buy extends SubCommand {
|
||||
|
||||
|
@ -12,7 +12,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
|
||||
usage = "/plot chat [on|off]",
|
||||
permission = "plots.chat",
|
||||
category = CommandCategory.ACTIONS,
|
||||
requiredType = RequiredType.PLAYER
|
||||
requiredType = RequiredType.NONE
|
||||
)
|
||||
public class Chat extends SubCommand {
|
||||
|
||||
|
@ -33,7 +33,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
|
||||
aliases = {"c"},
|
||||
description = "Claim the current plot you're standing on",
|
||||
category = CommandCategory.CLAIMING,
|
||||
requiredType = RequiredType.PLAYER,
|
||||
requiredType = RequiredType.NONE,
|
||||
permission = "plots.claim",
|
||||
usage = "/plot claim"
|
||||
)
|
||||
|
@ -40,7 +40,7 @@ import java.util.UUID;
|
||||
command = "cluster",
|
||||
aliases = {"clusters"},
|
||||
category = CommandCategory.ACTIONS,
|
||||
requiredType = RequiredType.PLAYER,
|
||||
requiredType = RequiredType.NONE,
|
||||
permission = "plots.cluster",
|
||||
description = "Manage a plot cluster"
|
||||
)
|
||||
|
@ -39,7 +39,7 @@ import java.util.Arrays;
|
||||
aliases = {"msg"},
|
||||
description = "Comment on a plot",
|
||||
category = CommandCategory.ACTIONS,
|
||||
requiredType = RequiredType.PLAYER,
|
||||
requiredType = RequiredType.NONE,
|
||||
permission = "plot.comment"
|
||||
)
|
||||
public class Comment extends SubCommand {
|
||||
|
@ -37,7 +37,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
|
||||
category = CommandCategory.ACTIONS,
|
||||
description = "Copy a plot",
|
||||
usage = "/plot copy <X;Z>",
|
||||
requiredType = RequiredType.PLAYER
|
||||
requiredType = RequiredType.NONE
|
||||
)
|
||||
public class Copy extends SubCommand {
|
||||
|
||||
|
@ -34,7 +34,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
|
||||
command = "createroadschematic",
|
||||
aliases = {"crs"},
|
||||
category = CommandCategory.DEBUG,
|
||||
requiredType = RequiredType.PLAYER,
|
||||
requiredType = RequiredType.NONE,
|
||||
permission = "plots.createroadschematic",
|
||||
description = "Add a road schematic to your world using the roads around your current plot",
|
||||
usage = "/plot createroadschematic"
|
||||
|
@ -13,7 +13,7 @@ import java.util.UUID;
|
||||
description = "Allow unsafe actions until toggled off",
|
||||
usage = "/plot debugallowunsafe",
|
||||
category = CommandCategory.DEBUG,
|
||||
requiredType = RequiredType.PLAYER,
|
||||
requiredType = RequiredType.NONE,
|
||||
permission = "plots.debugallowunsafe"
|
||||
)
|
||||
public class DebugAllowUnsafe extends SubCommand {
|
||||
|
@ -38,7 +38,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
|
||||
usage = "/plot fill",
|
||||
aliases = {"debugfill"},
|
||||
category = CommandCategory.DEBUG,
|
||||
requiredType = RequiredType.PLAYER
|
||||
requiredType = RequiredType.NONE
|
||||
)
|
||||
public class DebugFill extends SubCommand {
|
||||
|
||||
|
@ -33,7 +33,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
|
||||
@CommandDeclaration(
|
||||
command = "debugroadregen",
|
||||
usage = "/plot debugroadregen",
|
||||
requiredType = RequiredType.PLAYER,
|
||||
requiredType = RequiredType.NONE,
|
||||
description = "Regenerate all roads based on the road schematic",
|
||||
category = CommandCategory.DEBUG,
|
||||
permission = "plots.debugroadregen"
|
||||
|
@ -36,7 +36,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
|
||||
description = "Delete a plot",
|
||||
usage = "/plot delete",
|
||||
category = CommandCategory.ACTIONS,
|
||||
requiredType = RequiredType.PLAYER
|
||||
requiredType = RequiredType.NONE
|
||||
)
|
||||
public class Delete extends SubCommand {
|
||||
|
||||
|
@ -38,7 +38,7 @@ import java.util.UUID;
|
||||
description = "Deny a user from a plot",
|
||||
usage = "/plot deny <player>",
|
||||
category = CommandCategory.ACTIONS,
|
||||
requiredType = RequiredType.PLAYER
|
||||
requiredType = RequiredType.NONE
|
||||
)
|
||||
public class Deny extends SubCommand {
|
||||
|
||||
|
@ -19,7 +19,7 @@ import java.net.URL;
|
||||
command = "download",
|
||||
aliases = {"dl"},
|
||||
category = CommandCategory.ACTIONS,
|
||||
requiredType = RequiredType.PLAYER,
|
||||
requiredType = RequiredType.NONE,
|
||||
description = "Download your plot",
|
||||
permission = "plots.download"
|
||||
)
|
||||
|
@ -43,7 +43,7 @@ import java.util.HashMap;
|
||||
aliases = {"f"},
|
||||
description = "Manage plot flags",
|
||||
category = CommandCategory.ACTIONS,
|
||||
requiredType = RequiredType.PLAYER,
|
||||
requiredType = RequiredType.NONE,
|
||||
permission = "plots.flag"
|
||||
)
|
||||
public class FlagCmd extends SubCommand {
|
||||
|
@ -35,7 +35,7 @@ import java.util.ArrayList;
|
||||
description = "Go to your plot",
|
||||
usage = "/plot home [id|alias]",
|
||||
category = CommandCategory.TELEPORT,
|
||||
requiredType = RequiredType.PLAYER
|
||||
requiredType = RequiredType.NONE
|
||||
)
|
||||
public class Home extends SubCommand {
|
||||
|
||||
|
@ -41,7 +41,7 @@ import java.util.List;
|
||||
usage = "/plot inbox [inbox] [delete <index>|clear|page]",
|
||||
permission = "plots.inbox",
|
||||
category = CommandCategory.ACTIONS,
|
||||
requiredType = RequiredType.PLAYER
|
||||
requiredType = RequiredType.NONE
|
||||
)
|
||||
public class Inbox extends SubCommand {
|
||||
|
||||
|
@ -36,7 +36,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
|
||||
description = "Kick a player from your plot",
|
||||
permission = "plots.kick",
|
||||
category = CommandCategory.ACTIONS,
|
||||
requiredType = RequiredType.PLAYER
|
||||
requiredType = RequiredType.NONE
|
||||
)
|
||||
public class Kick extends SubCommand {
|
||||
|
||||
|
@ -22,7 +22,7 @@ import java.util.List;
|
||||
command = "load",
|
||||
aliases = {"restore"},
|
||||
category = CommandCategory.ACTIONS,
|
||||
requiredType = RequiredType.PLAYER,
|
||||
requiredType = RequiredType.NONE,
|
||||
description = "Load your plot",
|
||||
permission = "plots.load",
|
||||
usage = "/plot restore"
|
||||
|
@ -39,7 +39,7 @@ import java.util.UUID;
|
||||
permission = "plots.merge",
|
||||
usage = "/plot merge [direction]",
|
||||
category = CommandCategory.ACTIONS,
|
||||
requiredType = RequiredType.PLAYER
|
||||
requiredType = RequiredType.NONE
|
||||
)
|
||||
public class Merge extends SubCommand {
|
||||
public final static String[] values = new String[] { "north", "east", "south", "west" };
|
||||
|
@ -34,7 +34,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
|
||||
aliases = {"debugmove"},
|
||||
permission = "plots.move",
|
||||
category = CommandCategory.ACTIONS,
|
||||
requiredType = RequiredType.PLAYER
|
||||
requiredType = RequiredType.NONE
|
||||
)
|
||||
public class Move extends SubCommand {
|
||||
|
||||
|
@ -34,7 +34,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
|
||||
description = "Player music in a plot",
|
||||
usage = "/plot music",
|
||||
category = CommandCategory.ACTIONS,
|
||||
requiredType = RequiredType.PLAYER
|
||||
requiredType = RequiredType.NONE
|
||||
)
|
||||
public class MusicSubcommand extends SubCommand {
|
||||
|
||||
|
@ -46,7 +46,7 @@ import java.util.UUID;
|
||||
usage = "/plot rate [#|next]",
|
||||
aliases = {"rt"},
|
||||
category = CommandCategory.ACTIONS,
|
||||
requiredType = RequiredType.PLAYER
|
||||
requiredType = RequiredType.NONE
|
||||
)
|
||||
public class Rate extends SubCommand {
|
||||
|
||||
|
@ -41,7 +41,7 @@ import java.util.UUID;
|
||||
description = "Remove a player from a plot",
|
||||
usage = "/plot remove <player>",
|
||||
category = CommandCategory.ACTIONS,
|
||||
requiredType = RequiredType.PLAYER,
|
||||
requiredType = RequiredType.NONE,
|
||||
permission = "plots.remove"
|
||||
)
|
||||
public class Remove extends SubCommand {
|
||||
|
@ -23,7 +23,7 @@ import java.util.UUID;
|
||||
aliases = {"backup"},
|
||||
description = "Save your plot",
|
||||
category = CommandCategory.ACTIONS,
|
||||
requiredType = RequiredType.PLAYER,
|
||||
requiredType = RequiredType.NONE,
|
||||
permission = "plots.save"
|
||||
)
|
||||
public class Save extends SubCommand {
|
||||
|
@ -45,7 +45,7 @@ import java.util.List;
|
||||
usage = "/plot set <arg> <value(s)...>",
|
||||
permission = "plots.set",
|
||||
category = CommandCategory.ACTIONS,
|
||||
requiredType = RequiredType.PLAYER
|
||||
requiredType = RequiredType.NONE
|
||||
)
|
||||
public class Set extends SubCommand {
|
||||
public final static String[] values = new String[] { "biome", "alias", "home", "flag" };
|
||||
|
@ -44,7 +44,7 @@ import java.util.UUID;
|
||||
usage = "/plot setowner <player>",
|
||||
aliases = {"so"},
|
||||
category = CommandCategory.ACTIONS,
|
||||
requiredType = RequiredType.PLAYER
|
||||
requiredType = RequiredType.NONE
|
||||
)
|
||||
public class SetOwner extends SubCommand {
|
||||
|
||||
|
@ -35,7 +35,7 @@ import java.util.ArrayList;
|
||||
description = "Swap two plots",
|
||||
aliases = {"switch"},
|
||||
category = CommandCategory.ACTIONS,
|
||||
requiredType = RequiredType.PLAYER
|
||||
requiredType = RequiredType.NONE
|
||||
)
|
||||
public class Swap extends SubCommand {
|
||||
|
||||
|
@ -38,7 +38,7 @@ import org.apache.commons.lang.StringUtils;
|
||||
description = "Teleport to a plot",
|
||||
permission = "plots.tp",
|
||||
usage = "/plot tp <alias|id>",
|
||||
requiredType = RequiredType.PLAYER,
|
||||
requiredType = RequiredType.NONE,
|
||||
category = CommandCategory.TELEPORT
|
||||
)
|
||||
public class TP extends SubCommand {
|
||||
|
@ -34,7 +34,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
|
||||
usage = "/plot target <X;Z>",
|
||||
description = "Target a plot with your compass",
|
||||
permission = "plots.target",
|
||||
requiredType = RequiredType.PLAYER,
|
||||
requiredType = RequiredType.NONE,
|
||||
category = CommandCategory.ACTIONS
|
||||
)
|
||||
public class Target extends SubCommand {
|
||||
|
@ -33,7 +33,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
|
||||
permission = "plots.toggle",
|
||||
description = "Toggle per user settings",
|
||||
usage = "/plot toggle <setting>",
|
||||
requiredType = RequiredType.PLAYER,
|
||||
requiredType = RequiredType.NONE,
|
||||
category = CommandCategory.ACTIONS
|
||||
)
|
||||
public class Toggle extends SubCommand {
|
||||
|
@ -39,7 +39,7 @@ import java.util.UUID;
|
||||
@CommandDeclaration(
|
||||
command = "trust",
|
||||
aliases = {"t"},
|
||||
requiredType = RequiredType.PLAYER,
|
||||
requiredType = RequiredType.NONE,
|
||||
usage = "/plot trust <player>",
|
||||
description = "Allow a player to build in a plot",
|
||||
category = CommandCategory.ACTIONS
|
||||
|
@ -34,7 +34,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
|
||||
@CommandDeclaration(
|
||||
command = "unclaim",
|
||||
usage = "/plot unclaim",
|
||||
requiredType = RequiredType.PLAYER,
|
||||
requiredType = RequiredType.NONE,
|
||||
description = "Unclaim a plot",
|
||||
category = CommandCategory.ACTIONS
|
||||
)
|
||||
|
@ -39,7 +39,7 @@ import java.util.UUID;
|
||||
aliases = {"ud"},
|
||||
description = "Remove a denied user from a plot",
|
||||
usage = "/plot undeny <player>",
|
||||
requiredType = RequiredType.PLAYER,
|
||||
requiredType = RequiredType.NONE,
|
||||
category = CommandCategory.ACTIONS
|
||||
)
|
||||
public class Undeny extends SubCommand {
|
||||
|
@ -36,7 +36,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
|
||||
aliases = {"u"},
|
||||
description = "Unlink a mega-plot",
|
||||
usage = "/plot unlink",
|
||||
requiredType = RequiredType.PLAYER,
|
||||
requiredType = RequiredType.NONE,
|
||||
category = CommandCategory.ACTIONS
|
||||
)
|
||||
public class Unlink extends SubCommand {
|
||||
|
@ -41,7 +41,7 @@ import java.util.UUID;
|
||||
permission = "plot.untrust",
|
||||
description = "Remove a trusted user from a plot",
|
||||
usage = "/plot untrust <player>",
|
||||
requiredType = RequiredType.PLAYER,
|
||||
requiredType = RequiredType.NONE,
|
||||
category = CommandCategory.ACTIONS
|
||||
)
|
||||
public class Untrust extends SubCommand {
|
||||
|
@ -40,7 +40,7 @@ import java.util.UUID;
|
||||
description = "Visit someones plot",
|
||||
usage = "/plot visit <player|aliases|world|id> [#]",
|
||||
aliases = {"v}"},
|
||||
requiredType = RequiredType.PLAYER,
|
||||
requiredType = RequiredType.NONE,
|
||||
category = CommandCategory.TELEPORT
|
||||
)
|
||||
public class Visit extends SubCommand {
|
||||
|
@ -34,7 +34,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
|
||||
description = "Force bypass of WorldEdit",
|
||||
aliases = {"wea"},
|
||||
usage = "/plot weanywhere",
|
||||
requiredType = RequiredType.PLAYER,
|
||||
requiredType = RequiredType.NONE,
|
||||
category = CommandCategory.DEBUG
|
||||
)
|
||||
public class WE_Anywhere extends SubCommand {
|
||||
|
@ -78,7 +78,7 @@ public class MainUtil {
|
||||
|
||||
public static Location getPlotCenter(Plot plot) {
|
||||
Location bot = getPlotBottomLoc(plot.world, plot.id);
|
||||
Location top = getPlotBottomLoc(plot.world, plot.id).add(1, 0, 1);
|
||||
Location top = getPlotTopLoc(plot.world, plot.id).add(1, 0, 1);
|
||||
return new Location(plot.world, bot.getX() + (top.getX() - bot.getX()) / 2, 0, bot.getZ() + (top.getZ() - bot.getZ()) / 2);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user