@Command( aliases = {"/hcyl"}, usage = "<block> <radius> [height] ", desc = "Generate a hollow cylinder", min = 2, max = 3) @CommandPermissions({"worldedit.generation.cylinder"}) @Logging(PLACEMENT) public static void hcyl( CommandContext args, WorldEdit we, LocalSession session, LocalPlayer player, EditSession editSession) throws WorldEditException { Pattern block = we.getBlockPattern(player, args.getString(0)); double radius = Math.max(1, args.getDouble(1)); int height = args.argsLength() > 2 ? args.getInteger(2) : 1; Vector pos = session.getPlacementPosition(player); int affected = editSession.makeHollowCylinder(pos, block, radius, height); player.print(affected + " block(s) have been created."); }