- Fixed a few warnings
- Unified the formatting of the command prologue
- Put down why it was deprecated in the javadoc of a deprecated method.
- Gave //none a better usage line
- Switchcaseified some elseifs
This commit is contained in:
TomyLobo
2011-09-19 07:14:43 +02:00
parent 43809a705d
commit 88b4f4de18
20 changed files with 273 additions and 256 deletions

View File

@ -43,13 +43,13 @@ import com.sk89q.worldedit.regions.RegionOperationException;
*/
public class RegionCommands {
@Command(
aliases = {"/set"},
aliases = { "/set" },
usage = "<block>",
desc = "Set all the blocks inside the selection to a block",
min = 1,
max = 1
)
@CommandPermissions({"worldedit.region.set"})
@CommandPermissions("worldedit.region.set")
@Logging(REGION)
public static void set(CommandContext args, WorldEdit we,
LocalSession session, LocalPlayer player, EditSession editSession)
@ -70,14 +70,14 @@ public class RegionCommands {
}
@Command(
aliases = {"/replace"},
aliases = { "/replace" },
usage = "[from-block] <to-block>",
desc = "Replace all blocks in the selection with another",
flags = "f",
min = 1,
max = 2
)
@CommandPermissions({"worldedit.region.replace"})
@CommandPermissions("worldedit.region.replace")
@Logging(REGION)
public static void replace(CommandContext args, WorldEdit we,
LocalSession session, LocalPlayer player, EditSession editSession)
@ -105,13 +105,13 @@ public class RegionCommands {
}
@Command(
aliases = {"/overlay"},
aliases = { "/overlay" },
usage = "<block>",
desc = "Set a block on top of blocks in the region",
min = 1,
max = 1
)
@CommandPermissions({"worldedit.region.overlay"})
@CommandPermissions("worldedit.region.overlay")
@Logging(REGION)
public static void overlay(CommandContext args, WorldEdit we,
LocalSession session, LocalPlayer player, EditSession editSession)
@ -131,13 +131,13 @@ public class RegionCommands {
}
@Command(
aliases = {"/naturalize"},
aliases = { "/naturalize" },
usage = "",
desc = "3 layers of dirt on top then rock below",
min = 0,
max = 0
)
@CommandPermissions({"worldedit.region.naturalize"})
@CommandPermissions("worldedit.region.naturalize")
@Logging(REGION)
public static void naturalize(CommandContext args, WorldEdit we,
LocalSession session, LocalPlayer player, EditSession editSession)
@ -149,13 +149,13 @@ public class RegionCommands {
}
@Command(
aliases = {"/walls"},
aliases = { "/walls" },
usage = "<block>",
desc = "Build the four sides of the selection",
min = 1,
max = 1
)
@CommandPermissions({"worldedit.region.walls"})
@CommandPermissions("worldedit.region.walls")
@Logging(REGION)
public static void walls(CommandContext args, WorldEdit we,
LocalSession session, LocalPlayer player, EditSession editSession)
@ -173,13 +173,13 @@ public class RegionCommands {
}
@Command(
aliases = {"/faces", "/outline"},
aliases = { "/faces", "/outline" },
usage = "<block>",
desc = "Build the walls, ceiling, and floor of a selection",
min = 1,
max = 1
)
@CommandPermissions({"worldedit.region.faces"})
@CommandPermissions("worldedit.region.faces")
@Logging(REGION)
public static void faces(CommandContext args, WorldEdit we,
LocalSession session, LocalPlayer player, EditSession editSession)
@ -197,14 +197,14 @@ public class RegionCommands {
}
@Command(
aliases = {"/smooth"},
aliases = { "/smooth" },
usage = "[iterations]",
flags = "n",
desc = "Smooth the elevation in the selection",
min = 0,
max = 1
)
@CommandPermissions({"worldedit.region.smooth"})
@CommandPermissions("worldedit.region.smooth")
@Logging(REGION)
public static void smooth(CommandContext args, WorldEdit we,
LocalSession session, LocalPlayer player, EditSession editSession)
@ -223,14 +223,14 @@ public class RegionCommands {
}
@Command(
aliases = {"/move"},
aliases = { "/move" },
usage = "[count] [direction] [leave-id]",
flags = "s",
desc = "Move the contents of the selection",
min = 0,
max = 3
)
@CommandPermissions({"worldedit.region.move"})
@CommandPermissions("worldedit.region.move")
@Logging(ORIENTATION_REGION)
public static void move(CommandContext args, WorldEdit we,
LocalSession session, LocalPlayer player, EditSession editSession)
@ -269,14 +269,14 @@ public class RegionCommands {
@Command(
aliases = {"/stack"},
aliases = { "/stack" },
usage = "[count] [direction]",
flags = "sa",
desc = "Repeat the contents of the selection",
min = 0,
max = 2
)
@CommandPermissions({"worldedit.region.stack"})
@CommandPermissions("worldedit.region.stack")
@Logging(ORIENTATION_REGION)
public static void stack(CommandContext args, WorldEdit we,
LocalSession session, LocalPlayer player, EditSession editSession)
@ -306,13 +306,13 @@ public class RegionCommands {
}
@Command(
aliases = {"/regen"},
aliases = { "/regen" },
usage = "",
desc = "Regenerates the contents of the selection",
min = 0,
max = 0
)
@CommandPermissions({"worldedit.regen"})
@CommandPermissions("worldedit.regen")
@Logging(REGION)
public static void regenerateChunk(CommandContext args, WorldEdit we,
LocalSession session, LocalPlayer player, EditSession editSession)