Removed permissions from plugin.yml for compatibility and cleaned up a bit more.

This commit is contained in:
Wizjany 2011-09-18 01:29:12 -04:00
parent 3f369f104a
commit 709cae1995
3 changed files with 9 additions and 98 deletions

View File

@ -182,7 +182,7 @@ public class UtilityCommands {
@Command( @Command(
aliases = {"/removebelow", "removebelow"}, aliases = {"/removebelow", "removebelow"},
usage = "[size] [height] ", usage = "[size] [height]",
desc = "Remove blocks below you.", desc = "Remove blocks below you.",
min = 0, min = 0,
max = 2 max = 2

View File

@ -186,18 +186,12 @@ public class DocumentationPrinter {
stream.println(" description: " + cmd.desc()); stream.println(" description: " + cmd.desc());
stream.println(" usage: /<command>" stream.println(" usage: /<command>"
+ (cmd.flags().length() > 0 ? " [-" + cmd.flags() + "]" : "") + (cmd.flags().length() > 0 ? " [-" + cmd.flags() + "]" : "")
+ " " + cmd.usage()); + (cmd.usage().length() > 0 ? " " + cmd.usage() : ""));
if (cmd.aliases().length > 1) { if (cmd.aliases().length > 1) {
stream.println(" aliases: [" stream.println(" aliases: ["
+ StringUtil.joinQuotedString(cmd.aliases(), ", ", 1, "'") + StringUtil.joinQuotedString(cmd.aliases(), ", ", 1, "'")
+ "]"); + "]");
} }
if (!method.isAnnotationPresent(CommandPermissions.class)) {
continue;
}
CommandPermissions cmdPerms = method.getAnnotation(CommandPermissions.class);
stream.println(" permissions: "
+ StringUtil.joinQuotedString(cmdPerms.value(), ", ", 0, "'"));
} }
} }

View File

@ -5,56 +5,43 @@ commands:
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>
permissions: 'worldedit.chunkinfo'
listchunks: listchunks:
description: List chunks that your selection includes description: List chunks that your selection includes
usage: /<command> usage: /<command>
permissions: 'worldedit.listchunks'
delchunks: delchunks:
description: Delete chunks that your selection includes description: Delete chunks that your selection includes
usage: /<command> usage: /<command>
permissions: 'worldedit.delchunks'
/load: /load:
description: Load a schematic into your clipboard description: Load a schematic into your clipboard
usage: /<command> <filename> usage: /<command> <filename>
permissions: 'worldedit.clipboard.load'
/save: /save:
description: Save a schematic into your clipboard description: Save a schematic into your clipboard
usage: /<command> <filename> usage: /<command> <filename>
permissions: 'worldedit.clipboard.save'
/copy: /copy:
description: Copy the selection to the clipboard description: Copy the selection to the clipboard
usage: /<command> usage: /<command>
permissions: 'worldedit.clipboard.copy'
/flip: /flip:
description: Flip the contents of the clipboard. description: Flip the contents of the clipboard.
usage: /<command> [-p] [dir] usage: /<command> [-p] [dir]
permissions: 'worldedit.clipboard.flip'
/rotate: /rotate:
description: Rotate the contents of the clipboard description: Rotate the contents of the clipboard
usage: /<command> <angle-in-degrees> usage: /<command> <angle-in-degrees>
permissions: 'worldedit.clipboard.rotate'
/cut: /cut:
description: Cut the selection to the clipboard description: Cut the selection to the clipboard
usage: /<command> [leave-id] usage: /<command> [leave-id]
permissions: 'worldedit.clipboard.cut'
/paste: /paste:
description: Paste the clipboard's contents description: Paste the clipboard's contents
usage: /<command> [-ao] usage: /<command> [-ao]
permissions: 'worldedit.clipboard.paste'
clearclipboard: clearclipboard:
description: Clear your clipboard description: Clear your clipboard
usage: /<command> usage: /<command>
permissions: 'worldedit.clipboard.clear'
/limit: /limit:
description: Modify block change limit description: Modify block change limit
usage: /<command> <limit> usage: /<command> <limit>
permissions: 'worldedit.limit'
/gmask: /gmask:
description: Set the global mask description: Set the global mask
usage: /<command> [mask] usage: /<command> [mask]
aliases: ['gmask'] aliases: ['gmask']
permissions: 'worldedit.global-mask'
we: we:
description: WorldEdit commands description: WorldEdit commands
usage: /<command> usage: /<command>
@ -62,9 +49,8 @@ commands:
/fast: /fast:
description: Toggle fast mode description: Toggle fast mode
usage: /<command> usage: /<command>
permissions: 'worldedit.fast'
/toggleplace: /toggleplace:
description: description: Switch between your position and pos1 for placement
usage: /<command> usage: /<command>
aliases: ['toggleplace'] aliases: ['toggleplace']
/searchitem: /searchitem:
@ -74,188 +60,143 @@ commands:
/hcyl: /hcyl:
description: Generate a hollow cylinder description: Generate a hollow cylinder
usage: /<command> <block> <radius> [height] usage: /<command> <block> <radius> [height]
permissions: 'worldedit.generation.cylinder'
/cyl: /cyl:
description: Generate a cylinder description: Generate a cylinder
usage: /<command> <block> <radius> [height] usage: /<command> <block> <radius> [height]
permissions: 'worldedit.generation.cylinder'
/hsphere: /hsphere:
description: Generate a hollow sphere. description: Generate a hollow sphere.
usage: /<command> [-q] <block> <radius>[,<radius>,<radius>] [raised?] usage: /<command> [-q] <block> <radius>[,<radius>,<radius>] [raised?]
permissions: 'worldedit.generation.sphere'
/sphere: /sphere:
description: Generate a filled sphere. description: Generate a filled sphere.
usage: /<command> [-q] <block> <radius>[,<radius>,<radius>] [raised?] usage: /<command> [-q] <block> <radius>[,<radius>,<radius>] [raised?]
permissions: 'worldedit.generation.sphere'
forestgen: forestgen:
description: Generate a forest description: Generate a forest
usage: /<command> [size] [type] [density] usage: /<command> [size] [type] [density]
permissions: 'worldedit.generation.forest'
pumpkins: pumpkins:
description: Generate pumpkin patches description: Generate pumpkin patches
usage: /<command> [size] usage: /<command> [size]
permissions: 'worldedit.generation.pumpkins'
/pyramid: /pyramid:
description: Generate a filled pyramid description: Generate a filled pyramid
usage: /<command> <block> <range> usage: /<command> <block> <range>
permissions: 'worldedit.generation.pyramid'
/hpyramid: /hpyramid:
description: Generate a hollow pyramid description: Generate a hollow pyramid
usage: /<command> <block> <range> usage: /<command> <block> <range>
permissions: 'worldedit.generation.pyramid'
/undo: /undo:
description: Undoes the last action description: Undoes the last action
usage: /<command> [times] [player] usage: /<command> [times] [player]
aliases: ['undo'] aliases: ['undo']
permissions: 'worldedit.history.undo'
/redo: /redo:
description: Redoes the last action (from history) description: Redoes the last action (from history)
usage: /<command> [times] [player] usage: /<command> [times] [player]
aliases: ['redo'] aliases: ['redo']
permissions: 'worldedit.history.redo'
/clearhistory: /clearhistory:
description: Clear your history description: Clear your history
usage: /<command> usage: /<command>
aliases: ['clearhistory'] aliases: ['clearhistory']
permissions: 'worldedit.history.clear'
unstuck: unstuck:
description: Escape from being stuck inside a block description: Escape from being stuck inside a block
usage: /<command> usage: /<command>
aliases: ['!'] aliases: ['!']
permissions: 'worldedit.navigation.unstuck'
ascend: ascend:
description: Go up a floor description: Go up a floor
usage: /<command> [# of levels] usage: /<command> [# of levels]
permissions: 'worldedit.navigation.ascend'
descend: descend:
description: Go down a floor description: Go down a floor
usage: /<command> [# of floors] usage: /<command> [# of floors]
permissions: 'worldedit.navigation.descend'
ceil: ceil:
description: Go to the celing description: Go to the celing
usage: /<command> [clearance] usage: /<command> [clearance]
permissions: 'worldedit.navigation.ceiling'
thru: thru:
description: Passthrough walls description: Passthrough walls
usage: /<command> usage: /<command>
permissions: 'worldedit.navigation.thru'
jumpto: jumpto:
description: Teleport to a location description: Teleport to a location
usage: /<command> usage: /<command>
permissions: 'worldedit.navigation.jumpto'
up: up:
description: Go upwards some distance description: Go upwards some distance
usage: /<command> <block> usage: /<command> <block>
permissions: 'worldedit.navigation.up'
/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>
permissions: 'worldedit.region.replace'
/stack: /stack:
description: Repeat the contents of the selection description: Repeat the contents of the selection
usage: /<command> [-sa] [count] [direction] usage: /<command> [-sa] [count] [direction]
permissions: 'worldedit.region.stack'
/set: /set:
description: Set all the blocks inside the selection to a block description: Set all the blocks inside the selection to a block
usage: /<command> <block> usage: /<command> <block>
permissions: 'worldedit.region.set'
/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>
permissions: 'worldedit.region.overlay'
/naturalize: /naturalize:
description: 3 layers of dirt on top then rock below description: 3 layers of dirt on top then rock below
usage: /<command> usage: /<command>
permissions: 'worldedit.region.naturalize'
/walls: /walls:
description: Build the four sides of the selection description: Build the four sides of the selection
usage: /<command> <block> usage: /<command> <block>
permissions: 'worldedit.region.walls'
/faces: /faces:
description: Build the walls, ceiling, and floor of a selection description: Build the walls, ceiling, and floor of a selection
usage: /<command> <block> usage: /<command> <block>
aliases: ['/outline'] aliases: ['/outline']
permissions: 'worldedit.region.faces'
/smooth: /smooth:
description: Smooth the elevation in the selection description: Smooth the elevation in the selection
usage: /<command> [-n] [iterations] usage: /<command> [-n] [iterations]
permissions: 'worldedit.region.smooth'
/move: /move:
description: Move the contents of the selection description: Move the contents of the selection
usage: /<command> [-s] [count] [direction] [leave-id] usage: /<command> [-s] [count] [direction] [leave-id]
permissions: 'worldedit.region.move'
/regen: /regen:
description: Regenerates the contents of the selection description: Regenerates the contents of the selection
usage: /<command> usage: /<command>
permissions: 'worldedit.regen'
cs: cs:
description: Execute a CraftScript description: Execute a CraftScript
usage: /<command> <filename> [args...] usage: /<command> <filename> [args...]
permissions: 'worldedit.scripting.execute'
.s: .s:
description: Execute last CraftScript description: Execute last CraftScript
usage: /<command> [args...] usage: /<command> [args...]
permissions: 'worldedit.scripting.execute'
/count: /count:
description: Counts the number of a certain type of block description: Counts the number of a certain type of block
usage: /<command> <block> usage: /<command> <block>
permissions: 'worldedit.analysis.count'
/size: /size:
description: Get information about the selection description: Get information about the selection
usage: /<command> usage: /<command>
permissions: 'worldedit.selection.size'
/shift: /shift:
description: Shift the selection area description: Shift the selection area
usage: /<command> <amount> [direction] usage: /<command> <amount> [direction]
permissions: 'worldedit.selection.shift'
/chunk: /chunk:
description: Set the selection to your current chunk. The -s flag extends your current selection to the encompassed chunks. description: Set the selection to your current chunk.
usage: /<command> [-s] usage: /<command> [-s]
permissions: 'worldedit.selection.chunk'
/expand: /expand:
description: Expand the selection area description: Expand the selection area
usage: /<command> <amount> [reverse-amount] <direction> usage: /<command> <amount> [reverse-amount] <direction>
permissions: 'worldedit.selection.expand'
/contract: /contract:
description: Contract the selection area description: Contract the selection area
usage: /<command> <amount> [reverse-amount] [direction] usage: /<command> <amount> [reverse-amount] [direction]
permissions: 'worldedit.selection.contract'
/pos1: /pos1:
description: Set position 1 description: Set position 1
usage: /<command> [coordinates] usage: /<command> [coordinates]
permissions: 'worldedit.selection.pos'
/pos2: /pos2:
description: Set position 2 description: Set position 2
usage: /<command> [coordinates] usage: /<command> [coordinates]
permissions: 'worldedit.selection.pos'
/hpos1: /hpos1:
description: Set position 1 to targeted block description: Set position 1 to targeted block
usage: /<command> usage: /<command>
permissions: 'worldedit.selection.hpos'
/hpos2: /hpos2:
description: Set position 2 to targeted block description: Set position 2 to targeted block
usage: /<command> usage: /<command>
permissions: 'worldedit.selection.hpos'
/wand: /wand:
description: Get the wand object description: Get the wand object
usage: /<command> usage: /<command>
permissions: 'worldedit.wand'
toggleeditwand: toggleeditwand:
description: Toggle functionality of the edit wand description: Toggle functionality of the edit wand
usage: /<command> usage: /<command>
permissions: 'worldedit.wand.toggle'
/outset: /outset:
description: Outset the selection area description: Outset the selection area
usage: /<command> [-hv] <amount> usage: /<command> [-hv] <amount>
permissions: 'worldedit.selection.outset'
/inset: /inset:
description: Inset the selection area description: Inset the selection area
usage: /<command> [-hv] <amount> usage: /<command> [-hv] <amount>
permissions: 'worldedit.selection.inset'
/distr: /distr:
description: Get the distribution of blocks in the selection description: Get the distribution of blocks in the selection
usage: /<command> [-c] usage: /<command> [-c]
permissions: 'worldedit.analysis.distr'
/sel: /sel:
description: Choose a region selector description: Choose a region selector
usage: /<command> [type] usage: /<command> [type]
@ -268,20 +209,16 @@ 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']
permissions: 'worldedit.snapshots.restore'
size: size:
description: Set the brush size description: Set the brush size
usage: /<command> [pattern] usage: /<command> [pattern]
permissions: 'worldedit.brush.options.size'
mask: mask:
description: Set the brush mask description: Set the brush mask
usage: /<command> [mask] usage: /<command> [mask]
permissions: 'worldedit.brush.options.mask'
/: /:
description: Toggle the super pickaxe pickaxe function description: Toggle the super pickaxe pickaxe function
usage: /<command> [on|off] usage: /<command> [on|off]
aliases: [','] aliases: [',']
permissions: 'worldedit.superpickaxe'
superpickaxe: superpickaxe:
description: Select super pickaxe mode description: Select super pickaxe mode
usage: /<command> usage: /<command>
@ -293,35 +230,28 @@ commands:
description: Set the brush material description: Set the brush material
usage: /<command> [pattern] usage: /<command> [pattern]
aliases: ['material', 'fill'] aliases: ['material', 'fill']
permissions: 'worldedit.brush.options.material'
range: range:
description: Set the brush range description: Set the brush range
usage: /<command> [pattern] usage: /<command> [pattern]
permissions: 'worldedit.brush.options.range'
info: info:
description: Block information tool description: Block information tool
usage: /<command> usage: /<command>
permissions: 'worldedit.tool.info'
none: none:
description: Turn off all superpickaxe alternate modes description: Turn off all superpickaxe alternate modes
usage: /<command> usage: /<command>
tree: tree:
description: Tree generator tool description: Tree generator tool
usage: /<command> [type] usage: /<command> [type]
permissions: 'worldedit.tool.tree'
repl: repl:
description: Block replacer tool description: Block replacer tool
usage: /<command> <block> usage: /<command> <block>
permissions: 'worldedit.tool.replacer'
cycler: cycler:
description: Block data cycler tool description: Block data cycler tool
usage: /<command> usage: /<command>
permissions: 'worldedit.tool.data-cycler'
floodfill: floodfill:
description: Flood fill tool description: Flood fill tool
usage: /<command> <pattern> <range> usage: /<command> <pattern> <range>
aliases: ['flood'] aliases: ['flood']
permissions: 'worldedit.tool.flood-fill'
brush: brush:
description: Brush tool description: Brush tool
usage: /<command> usage: /<command>
@ -329,79 +259,66 @@ commands:
deltree: deltree:
description: Floating tree remover tool description: Floating tree remover tool
usage: /<command> usage: /<command>
permissions: 'worldedit.tool.deltree'
farwand: farwand:
description: Wand at a distance tool description: Wand at a distance tool
usage: /<command> usage: /<command>
permissions: 'worldedit.tool.farwand'
remove: remove:
description: Remove all entities of a type description: Remove all entities of a type
usage: /<command> <type> <radius> usage: /<command> <type> <radius>
aliases: ['rem', 'rement'] aliases: ['rem', 'rement']
permissions: 'worldedit.remove'
/fill: /fill:
description: Fill a hole description: Fill a hole
usage: /<command> <block> <radius> [depth] usage: /<command> <block> <radius> [depth]
permissions: 'worldedit.fill'
/fillr: /fillr:
description: Fill a hole recursively description: Fill a hole recursively
usage: /<command> <block> <radius> [depth] usage: /<command> <block> <radius> [depth]
permissions: 'worldedit.fill.recursive'
/drain: /drain:
description: Drain a pool description: Drain a pool
usage: /<command> <radius> usage: /<command> <radius>
permissions: 'worldedit.drain'
/fixlava: /fixlava:
description: Fix lava to be stationary description: Fix lava to be stationary
usage: /<command> <radius> usage: /<command> <radius>
aliases: ['fixlava'] aliases: ['fixlava']
permissions: 'worldedit.fixlava'
/fixwater: /fixwater:
description: Fix water to be stationary description: Fix water to be stationary
usage: /<command> <radius> usage: /<command> <radius>
aliases: ['fixwater'] aliases: ['fixwater']
permissions: 'worldedit.fixwater'
/removeabove: /removeabove:
description: Remove blocks above your head. description: Remove blocks above your head.
usage: /<command> [size] [height] usage: /<command> [size] [height]
aliases: ['removeabove'] aliases: ['removeabove']
permissions: 'worldedit.removeabove'
/removebelow: /removebelow:
description: Remove blocks below your head. description: Remove blocks below you.
usage: /<command> [size] [height] usage: /<command> [size] [height]
aliases: ['removebelow'] aliases: ['removebelow']
permissions: 'worldedit.removebelow'
/removenear: /removenear:
description: Remove blocks near you. description: Remove blocks near you.
usage: /<command> <block> [size] usage: /<command> <block> [size]
aliases: ['removenear'] aliases: ['removenear']
permissions: 'worldedit.removenear'
/replacenear: /replacenear:
description: Replace nearby blocks description: Replace nearby blocks
usage: /<command> <size> <from-id> <to-id> usage: /<command> <size> <from-id> <to-id>
aliases: ['replacenear'] aliases: ['replacenear']
permissions: 'worldedit.replacenear'
/snow: /snow:
description: Simulates snow description: Simulates snow
usage: /<command> [radius] usage: /<command> [radius]
aliases: ['snow'] aliases: ['snow']
permissions: 'worldedit.snow'
/thaw: /thaw:
description: Thaws the area description: Thaws the area
usage: /<command> [radius] usage: /<command> [radius]
aliases: ['thaw'] aliases: ['thaw']
permissions: 'worldedit.thaw'
/green: /green:
description: Greens the area description: Greens the area
usage: /<command> [radius] usage: /<command> [radius]
aliases: ['green'] aliases: ['green']
permissions: 'worldedit.green'
/ex: /ex:
description: Extinguish nearby fire description: Extinguish nearby fire
usage: /<command> [radius] usage: /<command> [radius]
aliases: ['/ext', '/extinguish', 'ex', 'ext', 'extinguish'] aliases: ['/ext', '/extinguish', 'ex', 'ext', 'extinguish']
permissions: 'worldedit.extinguish'
butcher: butcher:
description: Kill all or nearby mobs description: Kill all or nearby mobs
usage: /<command> [-p] [radius] usage: /<command> [-p] [radius]
permissions: 'worldedit.butcher'
# Permissions aren't here. Read http://wiki.sk89q.com/wiki/WEPIF/DinnerPerms
# for how WorldEdit permissions actually work.