use of com.sk89q.worldedit.command.tool.AreaPickaxe in project FastAsyncWorldEdit by IntellectualSites.
the class SuperPickaxeCommands method area.
@Command(name = "area", desc = "Enable the area super pickaxe pickaxe mode")
@CommandPermissions("worldedit.superpickaxe.area")
public void area(Player player, LocalSession session, @Arg(desc = "The range of the area pickaxe") int range) throws WorldEditException {
LocalConfiguration config = we.getConfiguration();
if (range > config.maxSuperPickaxeSize) {
player.print(Caption.of("worldedit.tool.superpickaxe.max-range", TextComponent.of(config.maxSuperPickaxeSize)));
return;
}
session.setSuperPickaxe(new AreaPickaxe(range));
session.enableSuperPickAxe();
player.print(Caption.of("worldedit.tool.superpickaxe.mode.area"));
}
Aggregations