--- miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/creative/GeneralContractorCommands.java 2016/11/18 20:53:27 3140 +++ miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/creative/GeneralContractorCommands.java 2017/05/29 13:03:52 3196 @@ -30,7 +30,34 @@ Material.STONE, Material.GRASS, Material.DIRT, - Material.COBBLESTONE + Material.COBBLESTONE, + Material.WOOD, + Material.BEDROCK, + Material.WATER, + Material.SAND, + Material.GRAVEL, + Material.GOLD_ORE, + Material.IRON_ORE, + Material.COAL_ORE, + Material.LOG, + Material.LEAVES, + Material.GLASS, + Material.LAPIS_ORE, + Material.LAPIS_BLOCK, + Material.SANDSTONE, + Material.WOOL, + Material.GOLD_BLOCK, + Material.IRON_BLOCK, + Material.BRICK, + Material.MOSSY_COBBLESTONE, + Material.OBSIDIAN, + Material.DIAMOND_ORE, + Material.DIAMOND_BLOCK, + Material.ICE, + Material.SNOW, + Material.CLAY, + Material.NETHERRACK, + Material.SOUL_SAND }; //4, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 35, 41, 42, 43, 44, 45, 48, 49, 56, 57, 73, 74, 79, 80, 82} ; @@ -95,6 +122,16 @@ } return true; } + + if (label.equals("levelandfillarea") ) { + if (validateLevelOrFill(player, label, args) ) { + + levelArea(player, loc, args); + fillArea(player, loc, args); + setSurface(player, loc, args); + + } + } if ( label.equals("slopearea") ) { slopeArea(player, loc, args); @@ -118,6 +155,8 @@ } return true; } + + return false; @@ -176,8 +215,8 @@ return; } - if (radius > 20) { - player.sendMessage("platform: radius may not exceed 20"); + if (radius > 25) { + player.sendMessage("platform: radius may not exceed 25"); return; } @@ -231,8 +270,8 @@ return; } - if (radius > 20) { - player.sendMessage("setsurface: radius may not exceed 20"); + if (radius > 25) { + player.sendMessage("setsurface: radius may not exceed 25"); return; } @@ -284,8 +323,8 @@ return false; } - if (radius > 20) { - player.sendMessage(label + ": radius may not exceed 20"); + if (radius > 25) { + player.sendMessage(label + ": radius may not exceed 25"); return false; }