mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-11-25 03:55:35 +01:00
*Rename command
This commit is contained in:
parent
1af22477ea
commit
9e9339b9ab
@ -376,19 +376,19 @@ public class BrushCommands {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Command(
|
@Command(
|
||||||
aliases = { "raise" },
|
aliases = { "pull" },
|
||||||
usage = "[radius]",
|
usage = "[radius]",
|
||||||
desc = "Choose the raise brush",
|
desc = "Choose the raise brush",
|
||||||
help = "Chooses the raise brush",
|
help = "Chooses the raise brush",
|
||||||
min = 0,
|
min = 0,
|
||||||
max = 1
|
max = 1
|
||||||
)
|
)
|
||||||
@CommandPermissions("worldedit.brush.raise")
|
@CommandPermissions("worldedit.brush.pull")
|
||||||
public void raiseBrush(Player player, LocalSession session, @Optional("5") double radius) throws WorldEditException {
|
public void pullBrush(Player player, LocalSession session, @Optional("5") double radius) throws WorldEditException {
|
||||||
worldEdit.checkMaxBrushRadius(radius);
|
worldEdit.checkMaxBrushRadius(radius);
|
||||||
BrushTool tool = session.getBrushTool(player.getItemInHand(), player);
|
BrushTool tool = session.getBrushTool(player.getItemInHand(), player);
|
||||||
tool.setSize(radius);
|
tool.setSize(radius);
|
||||||
tool.setBrush(new RaiseBrush(), "worldedit.brush.erode", player);
|
tool.setBrush(new RaiseBrush(), "worldedit.brush.pull", player);
|
||||||
player.print(BBC.getPrefix() + BBC.BRUSH_ERODE.f(radius));
|
player.print(BBC.getPrefix() + BBC.BRUSH_ERODE.f(radius));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user