nicatronTg

Shank

Feb 2nd, 2011
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.78 KB | None | 0 0
  1.         if (commandName.equals("fill")) {
  2.             int blockid = parseInt(args[0]);
  3.             debug("Blockid parsed.");
  4.             int volume = volume(point1, point2);
  5.             debug("Volume parsed");
  6.             ply.sendMessage(ChatColor.AQUA + "Editing: " + volume + " blocks.");
  7.             for(int i = minX; i<= maxX; i++){
  8.                 debug("For loop 1");
  9.                 for(int j = minY; j<= maxY; j++){
  10.                     debug("For loop 2");
  11.                     for(int k = minZ; k<= maxZ; k++){
  12.                         debug("For loop 3");
  13.                         Block b = getServer().getWorlds()[0].getBlockAt(i, j, k);
  14.                         b.setTypeId(blockid);
  15.                         debug("Looping....");
  16.                     }
  17.                 }
  18.             }
  19.         }
Advertisement
Add Comment
Please, Sign In to add comment