Console for every command (we will test what works)

This commit is contained in:
boy0001 2015-07-28 03:50:32 +10:00
parent 3a15254d8d
commit 8344903c50
40 changed files with 40 additions and 40 deletions

View File

@ -43,7 +43,7 @@ import java.util.UUID;
usage = "/plot add <player>", usage = "/plot add <player>",
category = CommandCategory.ACTIONS, category = CommandCategory.ACTIONS,
permission = "plots.add", permission = "plots.add",
requiredType = RequiredType.PLAYER requiredType = RequiredType.NONE
) )
public class Add extends SubCommand { public class Add extends SubCommand {

View File

@ -34,7 +34,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
command = "auto", command = "auto",
permission = "plots.auto", permission = "plots.auto",
category = CommandCategory.CLAIMING, category = CommandCategory.CLAIMING,
requiredType = RequiredType.PLAYER, requiredType = RequiredType.NONE,
description = "Claim the nearest plot", description = "Claim the nearest plot",
aliases = {"a"}, aliases = {"a"},
usage = "/plot auto" usage = "/plot auto"

View File

@ -39,7 +39,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
usage = "/plot buy", usage = "/plot buy",
permission = "plots.buy", permission = "plots.buy",
category = CommandCategory.CLAIMING, category = CommandCategory.CLAIMING,
requiredType = RequiredType.PLAYER requiredType = RequiredType.NONE
) )
public class Buy extends SubCommand { public class Buy extends SubCommand {

View File

@ -12,7 +12,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
usage = "/plot chat [on|off]", usage = "/plot chat [on|off]",
permission = "plots.chat", permission = "plots.chat",
category = CommandCategory.ACTIONS, category = CommandCategory.ACTIONS,
requiredType = RequiredType.PLAYER requiredType = RequiredType.NONE
) )
public class Chat extends SubCommand { public class Chat extends SubCommand {

View File

@ -33,7 +33,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
aliases = {"c"}, aliases = {"c"},
description = "Claim the current plot you're standing on", description = "Claim the current plot you're standing on",
category = CommandCategory.CLAIMING, category = CommandCategory.CLAIMING,
requiredType = RequiredType.PLAYER, requiredType = RequiredType.NONE,
permission = "plots.claim", permission = "plots.claim",
usage = "/plot claim" usage = "/plot claim"
) )

View File

@ -40,7 +40,7 @@ import java.util.UUID;
command = "cluster", command = "cluster",
aliases = {"clusters"}, aliases = {"clusters"},
category = CommandCategory.ACTIONS, category = CommandCategory.ACTIONS,
requiredType = RequiredType.PLAYER, requiredType = RequiredType.NONE,
permission = "plots.cluster", permission = "plots.cluster",
description = "Manage a plot cluster" description = "Manage a plot cluster"
) )

View File

@ -39,7 +39,7 @@ import java.util.Arrays;
aliases = {"msg"}, aliases = {"msg"},
description = "Comment on a plot", description = "Comment on a plot",
category = CommandCategory.ACTIONS, category = CommandCategory.ACTIONS,
requiredType = RequiredType.PLAYER, requiredType = RequiredType.NONE,
permission = "plot.comment" permission = "plot.comment"
) )
public class Comment extends SubCommand { public class Comment extends SubCommand {

View File

@ -37,7 +37,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
category = CommandCategory.ACTIONS, category = CommandCategory.ACTIONS,
description = "Copy a plot", description = "Copy a plot",
usage = "/plot copy <X;Z>", usage = "/plot copy <X;Z>",
requiredType = RequiredType.PLAYER requiredType = RequiredType.NONE
) )
public class Copy extends SubCommand { public class Copy extends SubCommand {

View File

@ -34,7 +34,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
command = "createroadschematic", command = "createroadschematic",
aliases = {"crs"}, aliases = {"crs"},
category = CommandCategory.DEBUG, category = CommandCategory.DEBUG,
requiredType = RequiredType.PLAYER, requiredType = RequiredType.NONE,
permission = "plots.createroadschematic", permission = "plots.createroadschematic",
description = "Add a road schematic to your world using the roads around your current plot", description = "Add a road schematic to your world using the roads around your current plot",
usage = "/plot createroadschematic" usage = "/plot createroadschematic"

View File

@ -13,7 +13,7 @@ import java.util.UUID;
description = "Allow unsafe actions until toggled off", description = "Allow unsafe actions until toggled off",
usage = "/plot debugallowunsafe", usage = "/plot debugallowunsafe",
category = CommandCategory.DEBUG, category = CommandCategory.DEBUG,
requiredType = RequiredType.PLAYER, requiredType = RequiredType.NONE,
permission = "plots.debugallowunsafe" permission = "plots.debugallowunsafe"
) )
public class DebugAllowUnsafe extends SubCommand { public class DebugAllowUnsafe extends SubCommand {

View File

@ -38,7 +38,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
usage = "/plot fill", usage = "/plot fill",
aliases = {"debugfill"}, aliases = {"debugfill"},
category = CommandCategory.DEBUG, category = CommandCategory.DEBUG,
requiredType = RequiredType.PLAYER requiredType = RequiredType.NONE
) )
public class DebugFill extends SubCommand { public class DebugFill extends SubCommand {

View File

@ -33,7 +33,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
@CommandDeclaration( @CommandDeclaration(
command = "debugroadregen", command = "debugroadregen",
usage = "/plot debugroadregen", usage = "/plot debugroadregen",
requiredType = RequiredType.PLAYER, requiredType = RequiredType.NONE,
description = "Regenerate all roads based on the road schematic", description = "Regenerate all roads based on the road schematic",
category = CommandCategory.DEBUG, category = CommandCategory.DEBUG,
permission = "plots.debugroadregen" permission = "plots.debugroadregen"

View File

@ -36,7 +36,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
description = "Delete a plot", description = "Delete a plot",
usage = "/plot delete", usage = "/plot delete",
category = CommandCategory.ACTIONS, category = CommandCategory.ACTIONS,
requiredType = RequiredType.PLAYER requiredType = RequiredType.NONE
) )
public class Delete extends SubCommand { public class Delete extends SubCommand {

View File

@ -38,7 +38,7 @@ import java.util.UUID;
description = "Deny a user from a plot", description = "Deny a user from a plot",
usage = "/plot deny <player>", usage = "/plot deny <player>",
category = CommandCategory.ACTIONS, category = CommandCategory.ACTIONS,
requiredType = RequiredType.PLAYER requiredType = RequiredType.NONE
) )
public class Deny extends SubCommand { public class Deny extends SubCommand {

View File

@ -19,7 +19,7 @@ import java.net.URL;
command = "download", command = "download",
aliases = {"dl"}, aliases = {"dl"},
category = CommandCategory.ACTIONS, category = CommandCategory.ACTIONS,
requiredType = RequiredType.PLAYER, requiredType = RequiredType.NONE,
description = "Download your plot", description = "Download your plot",
permission = "plots.download" permission = "plots.download"
) )

View File

@ -43,7 +43,7 @@ import java.util.HashMap;
aliases = {"f"}, aliases = {"f"},
description = "Manage plot flags", description = "Manage plot flags",
category = CommandCategory.ACTIONS, category = CommandCategory.ACTIONS,
requiredType = RequiredType.PLAYER, requiredType = RequiredType.NONE,
permission = "plots.flag" permission = "plots.flag"
) )
public class FlagCmd extends SubCommand { public class FlagCmd extends SubCommand {

View File

@ -35,7 +35,7 @@ import java.util.ArrayList;
description = "Go to your plot", description = "Go to your plot",
usage = "/plot home [id|alias]", usage = "/plot home [id|alias]",
category = CommandCategory.TELEPORT, category = CommandCategory.TELEPORT,
requiredType = RequiredType.PLAYER requiredType = RequiredType.NONE
) )
public class Home extends SubCommand { public class Home extends SubCommand {

View File

@ -41,7 +41,7 @@ import java.util.List;
usage = "/plot inbox [inbox] [delete <index>|clear|page]", usage = "/plot inbox [inbox] [delete <index>|clear|page]",
permission = "plots.inbox", permission = "plots.inbox",
category = CommandCategory.ACTIONS, category = CommandCategory.ACTIONS,
requiredType = RequiredType.PLAYER requiredType = RequiredType.NONE
) )
public class Inbox extends SubCommand { public class Inbox extends SubCommand {

View File

@ -36,7 +36,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
description = "Kick a player from your plot", description = "Kick a player from your plot",
permission = "plots.kick", permission = "plots.kick",
category = CommandCategory.ACTIONS, category = CommandCategory.ACTIONS,
requiredType = RequiredType.PLAYER requiredType = RequiredType.NONE
) )
public class Kick extends SubCommand { public class Kick extends SubCommand {

View File

@ -22,7 +22,7 @@ import java.util.List;
command = "load", command = "load",
aliases = {"restore"}, aliases = {"restore"},
category = CommandCategory.ACTIONS, category = CommandCategory.ACTIONS,
requiredType = RequiredType.PLAYER, requiredType = RequiredType.NONE,
description = "Load your plot", description = "Load your plot",
permission = "plots.load", permission = "plots.load",
usage = "/plot restore" usage = "/plot restore"

View File

@ -39,7 +39,7 @@ import java.util.UUID;
permission = "plots.merge", permission = "plots.merge",
usage = "/plot merge [direction]", usage = "/plot merge [direction]",
category = CommandCategory.ACTIONS, category = CommandCategory.ACTIONS,
requiredType = RequiredType.PLAYER requiredType = RequiredType.NONE
) )
public class Merge extends SubCommand { public class Merge extends SubCommand {
public final static String[] values = new String[] { "north", "east", "south", "west" }; public final static String[] values = new String[] { "north", "east", "south", "west" };

View File

@ -34,7 +34,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
aliases = {"debugmove"}, aliases = {"debugmove"},
permission = "plots.move", permission = "plots.move",
category = CommandCategory.ACTIONS, category = CommandCategory.ACTIONS,
requiredType = RequiredType.PLAYER requiredType = RequiredType.NONE
) )
public class Move extends SubCommand { public class Move extends SubCommand {

View File

@ -34,7 +34,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
description = "Player music in a plot", description = "Player music in a plot",
usage = "/plot music", usage = "/plot music",
category = CommandCategory.ACTIONS, category = CommandCategory.ACTIONS,
requiredType = RequiredType.PLAYER requiredType = RequiredType.NONE
) )
public class MusicSubcommand extends SubCommand { public class MusicSubcommand extends SubCommand {

View File

@ -46,7 +46,7 @@ import java.util.UUID;
usage = "/plot rate [#|next]", usage = "/plot rate [#|next]",
aliases = {"rt"}, aliases = {"rt"},
category = CommandCategory.ACTIONS, category = CommandCategory.ACTIONS,
requiredType = RequiredType.PLAYER requiredType = RequiredType.NONE
) )
public class Rate extends SubCommand { public class Rate extends SubCommand {

View File

@ -41,7 +41,7 @@ import java.util.UUID;
description = "Remove a player from a plot", description = "Remove a player from a plot",
usage = "/plot remove <player>", usage = "/plot remove <player>",
category = CommandCategory.ACTIONS, category = CommandCategory.ACTIONS,
requiredType = RequiredType.PLAYER, requiredType = RequiredType.NONE,
permission = "plots.remove" permission = "plots.remove"
) )
public class Remove extends SubCommand { public class Remove extends SubCommand {

View File

@ -23,7 +23,7 @@ import java.util.UUID;
aliases = {"backup"}, aliases = {"backup"},
description = "Save your plot", description = "Save your plot",
category = CommandCategory.ACTIONS, category = CommandCategory.ACTIONS,
requiredType = RequiredType.PLAYER, requiredType = RequiredType.NONE,
permission = "plots.save" permission = "plots.save"
) )
public class Save extends SubCommand { public class Save extends SubCommand {

View File

@ -45,7 +45,7 @@ import java.util.List;
usage = "/plot set <arg> <value(s)...>", usage = "/plot set <arg> <value(s)...>",
permission = "plots.set", permission = "plots.set",
category = CommandCategory.ACTIONS, category = CommandCategory.ACTIONS,
requiredType = RequiredType.PLAYER requiredType = RequiredType.NONE
) )
public class Set extends SubCommand { public class Set extends SubCommand {
public final static String[] values = new String[] { "biome", "alias", "home", "flag" }; public final static String[] values = new String[] { "biome", "alias", "home", "flag" };

View File

@ -44,7 +44,7 @@ import java.util.UUID;
usage = "/plot setowner <player>", usage = "/plot setowner <player>",
aliases = {"so"}, aliases = {"so"},
category = CommandCategory.ACTIONS, category = CommandCategory.ACTIONS,
requiredType = RequiredType.PLAYER requiredType = RequiredType.NONE
) )
public class SetOwner extends SubCommand { public class SetOwner extends SubCommand {

View File

@ -35,7 +35,7 @@ import java.util.ArrayList;
description = "Swap two plots", description = "Swap two plots",
aliases = {"switch"}, aliases = {"switch"},
category = CommandCategory.ACTIONS, category = CommandCategory.ACTIONS,
requiredType = RequiredType.PLAYER requiredType = RequiredType.NONE
) )
public class Swap extends SubCommand { public class Swap extends SubCommand {

View File

@ -38,7 +38,7 @@ import org.apache.commons.lang.StringUtils;
description = "Teleport to a plot", description = "Teleport to a plot",
permission = "plots.tp", permission = "plots.tp",
usage = "/plot tp <alias|id>", usage = "/plot tp <alias|id>",
requiredType = RequiredType.PLAYER, requiredType = RequiredType.NONE,
category = CommandCategory.TELEPORT category = CommandCategory.TELEPORT
) )
public class TP extends SubCommand { public class TP extends SubCommand {

View File

@ -34,7 +34,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
usage = "/plot target <X;Z>", usage = "/plot target <X;Z>",
description = "Target a plot with your compass", description = "Target a plot with your compass",
permission = "plots.target", permission = "plots.target",
requiredType = RequiredType.PLAYER, requiredType = RequiredType.NONE,
category = CommandCategory.ACTIONS category = CommandCategory.ACTIONS
) )
public class Target extends SubCommand { public class Target extends SubCommand {

View File

@ -33,7 +33,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
permission = "plots.toggle", permission = "plots.toggle",
description = "Toggle per user settings", description = "Toggle per user settings",
usage = "/plot toggle <setting>", usage = "/plot toggle <setting>",
requiredType = RequiredType.PLAYER, requiredType = RequiredType.NONE,
category = CommandCategory.ACTIONS category = CommandCategory.ACTIONS
) )
public class Toggle extends SubCommand { public class Toggle extends SubCommand {

View File

@ -39,7 +39,7 @@ import java.util.UUID;
@CommandDeclaration( @CommandDeclaration(
command = "trust", command = "trust",
aliases = {"t"}, aliases = {"t"},
requiredType = RequiredType.PLAYER, requiredType = RequiredType.NONE,
usage = "/plot trust <player>", usage = "/plot trust <player>",
description = "Allow a player to build in a plot", description = "Allow a player to build in a plot",
category = CommandCategory.ACTIONS category = CommandCategory.ACTIONS

View File

@ -34,7 +34,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
@CommandDeclaration( @CommandDeclaration(
command = "unclaim", command = "unclaim",
usage = "/plot unclaim", usage = "/plot unclaim",
requiredType = RequiredType.PLAYER, requiredType = RequiredType.NONE,
description = "Unclaim a plot", description = "Unclaim a plot",
category = CommandCategory.ACTIONS category = CommandCategory.ACTIONS
) )

View File

@ -39,7 +39,7 @@ import java.util.UUID;
aliases = {"ud"}, aliases = {"ud"},
description = "Remove a denied user from a plot", description = "Remove a denied user from a plot",
usage = "/plot undeny <player>", usage = "/plot undeny <player>",
requiredType = RequiredType.PLAYER, requiredType = RequiredType.NONE,
category = CommandCategory.ACTIONS category = CommandCategory.ACTIONS
) )
public class Undeny extends SubCommand { public class Undeny extends SubCommand {

View File

@ -36,7 +36,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
aliases = {"u"}, aliases = {"u"},
description = "Unlink a mega-plot", description = "Unlink a mega-plot",
usage = "/plot unlink", usage = "/plot unlink",
requiredType = RequiredType.PLAYER, requiredType = RequiredType.NONE,
category = CommandCategory.ACTIONS category = CommandCategory.ACTIONS
) )
public class Unlink extends SubCommand { public class Unlink extends SubCommand {

View File

@ -41,7 +41,7 @@ import java.util.UUID;
permission = "plot.untrust", permission = "plot.untrust",
description = "Remove a trusted user from a plot", description = "Remove a trusted user from a plot",
usage = "/plot untrust <player>", usage = "/plot untrust <player>",
requiredType = RequiredType.PLAYER, requiredType = RequiredType.NONE,
category = CommandCategory.ACTIONS category = CommandCategory.ACTIONS
) )
public class Untrust extends SubCommand { public class Untrust extends SubCommand {

View File

@ -40,7 +40,7 @@ import java.util.UUID;
description = "Visit someones plot", description = "Visit someones plot",
usage = "/plot visit <player|aliases|world|id> [#]", usage = "/plot visit <player|aliases|world|id> [#]",
aliases = {"v}"}, aliases = {"v}"},
requiredType = RequiredType.PLAYER, requiredType = RequiredType.NONE,
category = CommandCategory.TELEPORT category = CommandCategory.TELEPORT
) )
public class Visit extends SubCommand { public class Visit extends SubCommand {

View File

@ -34,7 +34,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
description = "Force bypass of WorldEdit", description = "Force bypass of WorldEdit",
aliases = {"wea"}, aliases = {"wea"},
usage = "/plot weanywhere", usage = "/plot weanywhere",
requiredType = RequiredType.PLAYER, requiredType = RequiredType.NONE,
category = CommandCategory.DEBUG category = CommandCategory.DEBUG
) )
public class WE_Anywhere extends SubCommand { public class WE_Anywhere extends SubCommand {

View File

@ -78,7 +78,7 @@ public class MainUtil {
public static Location getPlotCenter(Plot plot) { public static Location getPlotCenter(Plot plot) {
Location bot = getPlotBottomLoc(plot.world, plot.id); 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); return new Location(plot.world, bot.getX() + (top.getX() - bot.getX()) / 2, 0, bot.getZ() + (top.getZ() - bot.getZ()) / 2);
} }