Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (commandName.equals("fill")) {
- int blockid = parseInt(args[0]);
- debug("Blockid parsed.");
- int volume = volume(point1, point2);
- debug("Volume parsed");
- ply.sendMessage(ChatColor.AQUA + "Editing: " + volume + " blocks.");
- for(int i = minX; i<= maxX; i++){
- debug("For loop 1");
- for(int j = minY; j<= maxY; j++){
- debug("For loop 2");
- for(int k = minZ; k<= maxZ; k++){
- debug("For loop 3");
- Block b = getServer().getWorlds()[0].getBlockAt(i, j, k);
- b.setTypeId(blockid);
- debug("Looping....");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment