mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
A few command fixes
This commit is contained in:
parent
7d85df4575
commit
d4fce65abc
@ -88,7 +88,9 @@ public class BrushCommands {
|
|||||||
desc = "Choose the sphere brush"
|
desc = "Choose the sphere brush"
|
||||||
)
|
)
|
||||||
@CommandPermissions("worldedit.brush.sphere")
|
@CommandPermissions("worldedit.brush.sphere")
|
||||||
public void sphereBrush(Player player, LocalSession session, Pattern fill,
|
public void sphereBrush(Player player, LocalSession session,
|
||||||
|
@Arg(desc = "The pattern of blocks to set")
|
||||||
|
Pattern fill,
|
||||||
@Arg(desc = "The radius of the sphere", def = "2")
|
@Arg(desc = "The radius of the sphere", def = "2")
|
||||||
double radius,
|
double radius,
|
||||||
@Switch(name = 'h', desc = "Create hollow spheres instead")
|
@Switch(name = 'h', desc = "Create hollow spheres instead")
|
||||||
@ -114,7 +116,9 @@ public class BrushCommands {
|
|||||||
desc = "Choose the cylinder brush"
|
desc = "Choose the cylinder brush"
|
||||||
)
|
)
|
||||||
@CommandPermissions("worldedit.brush.cylinder")
|
@CommandPermissions("worldedit.brush.cylinder")
|
||||||
public void cylinderBrush(Player player, LocalSession session, Pattern fill,
|
public void cylinderBrush(Player player, LocalSession session,
|
||||||
|
@Arg(desc = "The pattern of blocks to set")
|
||||||
|
Pattern fill,
|
||||||
@Arg(desc = "The radius of the cylinder", def = "2")
|
@Arg(desc = "The radius of the cylinder", def = "2")
|
||||||
double radius,
|
double radius,
|
||||||
@Arg(desc = "The height of the cylinder", def = "1")
|
@Arg(desc = "The height of the cylinder", def = "1")
|
||||||
@ -152,7 +156,7 @@ public class BrushCommands {
|
|||||||
boolean pasteEntities,
|
boolean pasteEntities,
|
||||||
@Switch(name = 'b', desc = "Paste biomes if available")
|
@Switch(name = 'b', desc = "Paste biomes if available")
|
||||||
boolean pasteBiomes,
|
boolean pasteBiomes,
|
||||||
@ArgFlag(name = 'm', desc = "Skip blocks matching this mask", def = "")
|
@ArgFlag(name = 'm', desc = "Skip blocks matching this mask in the clipboard", def = "")
|
||||||
Mask sourceMask) throws WorldEditException {
|
Mask sourceMask) throws WorldEditException {
|
||||||
ClipboardHolder holder = session.getClipboard();
|
ClipboardHolder holder = session.getClipboard();
|
||||||
Clipboard clipboard = holder.getClipboard();
|
Clipboard clipboard = holder.getClipboard();
|
||||||
|
@ -177,7 +177,7 @@ public class RegionCommands {
|
|||||||
@Arg(desc = "The mask representing blocks to replace", def = "")
|
@Arg(desc = "The mask representing blocks to replace", def = "")
|
||||||
Mask from,
|
Mask from,
|
||||||
@Arg(desc = "The pattern of blocks to replace with")
|
@Arg(desc = "The pattern of blocks to replace with")
|
||||||
Pattern to) throws WorldEditException {
|
Pattern to) throws WorldEditException {
|
||||||
if (from == null) {
|
if (from == null) {
|
||||||
from = new ExistingBlockMask(editSession);
|
from = new ExistingBlockMask(editSession);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user