Fixed issue with too many commands being put into plugin.yml.

Dieser Commit ist enthalten in:
sk89q 2011-02-21 22:50:48 -08:00
Ursprung 19deb404ee
Commit b2547b2156
2 geänderte Dateien mit 59 neuen und 70 gelöschten Zeilen

Datei anzeigen

@ -2,21 +2,6 @@ name: WorldEdit
main: com.sk89q.worldedit.bukkit.WorldEditPlugin main: com.sk89q.worldedit.bukkit.WorldEditPlugin
version: "WEVERSIONMACRO" version: "WEVERSIONMACRO"
commands: commands:
sphere:
description: Choose the sphere brush
usage: /<command> [-h] <block> [radius]
aliases: ['s']
cylinder:
description: Choose the cylinder brush
usage: /<command> [-h] <block> [radius] [height]
aliases: ['cyl', 'c']
clipboard:
description: Choose the clipboard brush
usage: /<command> [-a]
aliases: ['copy']
smooth:
description: Choose the terrain softener brush
usage: /<command> [size] [iterations]
chunkinfo: chunkinfo:
description: Get information about the chunk that you are inside description: Get information about the chunk that you are inside
usage: /<command> usage: /<command>
@ -64,18 +49,18 @@ commands:
/limit: /limit:
description: Modify block change limit description: Modify block change limit
usage: /<command> <limit> usage: /<command> <limit>
/sphere:
description: Generate a filled sphere
usage: /<command> <block> <radius> [raised?]
/cyl:
description: Generate a cylinder
usage: /<command> <block> <radius> [height]
/hcyl: /hcyl:
description: Generate a hollow cylinder description: Generate a hollow cylinder
usage: /<command> <block> <radius> [height] usage: /<command> <block> <radius> [height]
/cyl:
description: Generate a cylinder
usage: /<command> <block> <radius> [height]
/hsphere: /hsphere:
description: Generate a hollow sphere description: Generate a hollow sphere
usage: /<command> <block> <radius> [raised?] usage: /<command> <block> <radius> [raised?]
/sphere:
description: Generate a filled sphere
usage: /<command> <block> <radius> [raised?]
forestgen: forestgen:
description: Generate a forest description: Generate a forest
usage: /<command> [size] [type] [density] usage: /<command> [size] [type] [density]
@ -114,9 +99,6 @@ commands:
up: up:
description: Go upwards some distance description: Go upwards some distance
usage: /<command> <block> usage: /<command> <block>
/smooth:
description: Smooth the elevation in the selection
usage: /<command> [iterations]
/overlay: /overlay:
description: Set a block on top of blocks in the region description: Set a block on top of blocks in the region
usage: /<command> <block> usage: /<command> <block>
@ -127,6 +109,9 @@ commands:
description: Build the walls, ceiling, and roof of a selection description: Build the walls, ceiling, and roof of a selection
usage: /<command> <block> usage: /<command> <block>
aliases: ['/outline'] aliases: ['/outline']
/smooth:
description: Smooth the elevation in the selection
usage: /<command> [iterations]
/replace: /replace:
description: Replace all blocks in the selection with another description: Replace all blocks in the selection with another
usage: /<command> [from-block] <to-block> usage: /<command> [from-block] <to-block>
@ -195,12 +180,6 @@ commands:
/inset: /inset:
description: Inset the selection area description: Inset the selection area
usage: /<command> [-hv] <amount> usage: /<command> [-hv] <amount>
use:
description: Choose a snapshot to use
usage: /<command> <snapshot>
list:
description: List snapshots
usage: /<command> [num]
snapshot: snapshot:
description: Snapshot commands description: Snapshot commands
usage: /<command> usage: /<command>
@ -209,16 +188,28 @@ commands:
description: Restore the selection from a snapshot description: Restore the selection from a snapshot
usage: /<command> [snapshot] usage: /<command> [snapshot]
aliases: ['/restore'] aliases: ['/restore']
area: /:
description: Enable the area super pickaxe pickaxe mode description: Toggle the super pickaxe pickaxe function
usage: /<command> <radius>
recur:
description: Enable the recursive super pickaxe pickaxe mode
usage: /<command> <radius>
aliases: ['recursive']
single:
description: Enable the single block super pickaxe mode
usage: /<command> usage: /<command>
aliases: [',']
superpickaxe:
description: Select super pickaxe mode
usage: /<command>
aliases: ['pickaxe', 'sp']
tool:
description: Select a tool to bind
usage: /<command>
aliases: ['t']
mat:
description: Set the brush material
usage: /<command> [pattern]
aliases: ['material', 'fill']
size:
description: Set the brush size
usage: /<command> [pattern]
mask:
description: Set the brush mask
usage: /<command> [mask]
none: none:
description: Turn off all superpickaxe alternate modes description: Turn off all superpickaxe alternate modes
usage: /<command> usage: /<command>
@ -238,28 +229,6 @@ commands:
tree: tree:
description: Tree generator tool description: Tree generator tool
usage: /<command> [type] usage: /<command> [type]
tool:
description: Select a tool to bind
usage: /<command>
aliases: ['t']
/:
description: Toggle the super pickaxe pickaxe function
usage: /<command>
aliases: [',']
superpickaxe:
description: Select super pickaxe mode
usage: /<command>
aliases: ['pickaxe', 'sp']
mat:
description: Set the brush material
usage: /<command> [pattern]
aliases: ['material', 'fill']
size:
description: Set the brush size
usage: /<command> [pattern]
mask:
description: Set the brush mask
usage: /<command> [mask]
/fillr: /fillr:
description: Fill a hole recursively description: Fill a hole recursively
usage: /<command> <block> <radius> [depth] usage: /<command> <block> <radius> [depth]
@ -304,10 +273,3 @@ commands:
/drain: /drain:
description: Drain a pool description: Drain a pool
usage: /<command> <radius> usage: /<command> <radius>
version:
description: Get WorldEdit version
usage: /<command>
aliases: ['ver']
reload:
description: Reload WorldEdit
usage: /<command>

Datei anzeigen

@ -26,6 +26,19 @@ import java.util.List;
import com.sk89q.minecraft.util.commands.Command; import com.sk89q.minecraft.util.commands.Command;
import com.sk89q.minecraft.util.commands.CommandPermissions; import com.sk89q.minecraft.util.commands.CommandPermissions;
import com.sk89q.util.StringUtil; 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 class DocumentationPrinter {
public static void main(String[] args) throws IOException { public static void main(String[] args) throws IOException {
@ -44,7 +57,21 @@ public class DocumentationPrinter {
private static List<Class<?>> getCommandClasses(File dir) { private static List<Class<?>> getCommandClasses(File dir) {
List<Class<?>> classes = new ArrayList<Class<?>>(); List<Class<?>> classes = new ArrayList<Class<?>>();
for (File f : dir.listFiles()) { 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()) {
if (!f.getName().matches("^.*\\.java$")) { if (!f.getName().matches("^.*\\.java$")) {
continue; continue;
} }
@ -61,7 +88,7 @@ public class DocumentationPrinter {
} }
classes.add(cls); classes.add(cls);
} }*/
return classes; return classes;
} }