- 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

@ -31,13 +31,13 @@ import com.sk89q.worldedit.*;
*/
public class HistoryCommands {
@Command(
aliases = {"/undo", "undo"},
aliases = { "/undo", "undo" },
usage = "[times] [player]",
desc = "Undoes the last action",
min = 0,
max = 2
)
@CommandPermissions({"worldedit.history.undo"})
@CommandPermissions("worldedit.history.undo")
public static void undo(CommandContext args, WorldEdit we,
LocalSession session, LocalPlayer player, EditSession editSession)
throws WorldEditException {
@ -67,13 +67,13 @@ public class HistoryCommands {
}
@Command(
aliases = {"/redo", "redo"},
aliases = { "/redo", "redo" },
usage = "[times] [player]",
desc = "Redoes the last action (from history)",
min = 0,
max = 2
)
@CommandPermissions({"worldedit.history.redo"})
@CommandPermissions("worldedit.history.redo")
public static void redo(CommandContext args, WorldEdit we,
LocalSession session, LocalPlayer player, EditSession editSession)
throws WorldEditException {
@ -103,13 +103,13 @@ public class HistoryCommands {
}
@Command(
aliases = {"/clearhistory", "clearhistory"},
aliases = { "/clearhistory", "clearhistory" },
usage = "",
desc = "Clear your history",
min = 0,
max = 0
)
@CommandPermissions({"worldedit.history.clear"})
@CommandPermissions("worldedit.history.clear")
public static void clearHistory(CommandContext args, WorldEdit we,
LocalSession session, LocalPlayer player, EditSession editSession)
throws WorldEditException {