diff --git a/plugin.yml b/plugin.yml index aff4f2261..0efb4fe94 100644 --- a/plugin.yml +++ b/plugin.yml @@ -2,21 +2,6 @@ name: WorldEdit main: com.sk89q.worldedit.bukkit.WorldEditPlugin version: "WEVERSIONMACRO" commands: - sphere: - description: Choose the sphere brush - usage: / [-h] [radius] - aliases: ['s'] - cylinder: - description: Choose the cylinder brush - usage: / [-h] [radius] [height] - aliases: ['cyl', 'c'] - clipboard: - description: Choose the clipboard brush - usage: / [-a] - aliases: ['copy'] - smooth: - description: Choose the terrain softener brush - usage: / [size] [iterations] chunkinfo: description: Get information about the chunk that you are inside usage: / @@ -64,18 +49,18 @@ commands: /limit: description: Modify block change limit usage: / - /sphere: - description: Generate a filled sphere - usage: / [raised?] - /cyl: - description: Generate a cylinder - usage: / [height] /hcyl: description: Generate a hollow cylinder usage: / [height] + /cyl: + description: Generate a cylinder + usage: / [height] /hsphere: description: Generate a hollow sphere usage: / [raised?] + /sphere: + description: Generate a filled sphere + usage: / [raised?] forestgen: description: Generate a forest usage: / [size] [type] [density] @@ -114,9 +99,6 @@ commands: up: description: Go upwards some distance usage: / - /smooth: - description: Smooth the elevation in the selection - usage: / [iterations] /overlay: description: Set a block on top of blocks in the region usage: / @@ -127,6 +109,9 @@ commands: description: Build the walls, ceiling, and roof of a selection usage: / aliases: ['/outline'] + /smooth: + description: Smooth the elevation in the selection + usage: / [iterations] /replace: description: Replace all blocks in the selection with another usage: / [from-block] @@ -195,12 +180,6 @@ commands: /inset: description: Inset the selection area usage: / [-hv] - use: - description: Choose a snapshot to use - usage: / - list: - description: List snapshots - usage: / [num] snapshot: description: Snapshot commands usage: / @@ -209,16 +188,28 @@ commands: description: Restore the selection from a snapshot usage: / [snapshot] aliases: ['/restore'] - area: - description: Enable the area super pickaxe pickaxe mode - usage: / - recur: - description: Enable the recursive super pickaxe pickaxe mode - usage: / - aliases: ['recursive'] - single: - description: Enable the single block super pickaxe mode + /: + description: Toggle the super pickaxe pickaxe function usage: / + aliases: [','] + superpickaxe: + description: Select super pickaxe mode + usage: / + aliases: ['pickaxe', 'sp'] + tool: + description: Select a tool to bind + usage: / + aliases: ['t'] + mat: + description: Set the brush material + usage: / [pattern] + aliases: ['material', 'fill'] + size: + description: Set the brush size + usage: / [pattern] + mask: + description: Set the brush mask + usage: / [mask] none: description: Turn off all superpickaxe alternate modes usage: / @@ -238,28 +229,6 @@ commands: tree: description: Tree generator tool usage: / [type] - tool: - description: Select a tool to bind - usage: / - aliases: ['t'] - /: - description: Toggle the super pickaxe pickaxe function - usage: / - aliases: [','] - superpickaxe: - description: Select super pickaxe mode - usage: / - aliases: ['pickaxe', 'sp'] - mat: - description: Set the brush material - usage: / [pattern] - aliases: ['material', 'fill'] - size: - description: Set the brush size - usage: / [pattern] - mask: - description: Set the brush mask - usage: / [mask] /fillr: description: Fill a hole recursively usage: / [depth] @@ -304,10 +273,3 @@ commands: /drain: description: Drain a pool usage: / - version: - description: Get WorldEdit version - usage: / - aliases: ['ver'] - reload: - description: Reload WorldEdit - usage: / diff --git a/src/com/sk89q/worldedit/dev/DocumentationPrinter.java b/src/com/sk89q/worldedit/dev/DocumentationPrinter.java index 587517cd6..616bf4bef 100644 --- a/src/com/sk89q/worldedit/dev/DocumentationPrinter.java +++ b/src/com/sk89q/worldedit/dev/DocumentationPrinter.java @@ -26,6 +26,19 @@ import java.util.List; import com.sk89q.minecraft.util.commands.Command; import com.sk89q.minecraft.util.commands.CommandPermissions; import com.sk89q.util.StringUtil; +import com.sk89q.worldedit.commands.ChunkCommands; +import com.sk89q.worldedit.commands.ClipboardCommands; +import com.sk89q.worldedit.commands.GeneralCommands; +import com.sk89q.worldedit.commands.GenerationCommands; +import com.sk89q.worldedit.commands.HistoryCommands; +import com.sk89q.worldedit.commands.NavigationCommands; +import com.sk89q.worldedit.commands.RegionCommands; +import com.sk89q.worldedit.commands.ScriptingCommands; +import com.sk89q.worldedit.commands.SelectionCommands; +import com.sk89q.worldedit.commands.SnapshotUtilCommands; +import com.sk89q.worldedit.commands.ToolCommands; +import com.sk89q.worldedit.commands.ToolUtilCommands; +import com.sk89q.worldedit.commands.UtilityCommands; public class DocumentationPrinter { public static void main(String[] args) throws IOException { @@ -43,8 +56,22 @@ public class DocumentationPrinter { private static List> getCommandClasses(File dir) { List> classes = new ArrayList>(); + + classes.add(ChunkCommands.class); + classes.add(ClipboardCommands.class); + classes.add(GeneralCommands.class); + classes.add(GenerationCommands.class); + classes.add(HistoryCommands.class); + classes.add(NavigationCommands.class); + classes.add(RegionCommands.class); + classes.add(ScriptingCommands.class); + classes.add(SelectionCommands.class); + classes.add(SnapshotUtilCommands.class); + classes.add(ToolUtilCommands.class); + classes.add(ToolCommands.class); + classes.add(UtilityCommands.class); - for (File f : dir.listFiles()) { + /*for (File f : dir.listFiles()) { if (!f.getName().matches("^.*\\.java$")) { continue; } @@ -61,7 +88,7 @@ public class DocumentationPrinter { } classes.add(cls); - } + }*/ return classes; }