*Rename command

This commit is contained in:
Jesse Boyd 2017-03-04 17:03:32 +11:00
parent 1af22477ea
commit 9e9339b9ab
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -376,19 +376,19 @@ public class BrushCommands {
}
@Command(
aliases = { "raise" },
aliases = { "pull" },
usage = "[radius]",
desc = "Choose the raise brush",
help = "Chooses the raise brush",
min = 0,
max = 1
)
@CommandPermissions("worldedit.brush.raise")
public void raiseBrush(Player player, LocalSession session, @Optional("5") double radius) throws WorldEditException {
@CommandPermissions("worldedit.brush.pull")
public void pullBrush(Player player, LocalSession session, @Optional("5") double radius) throws WorldEditException {
worldEdit.checkMaxBrushRadius(radius);
BrushTool tool = session.getBrushTool(player.getItemInHand(), player);
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));
}