Advertisement
riking

try this

Sep 1st, 2013
417
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for (Location location : doorblocks.keySet()) {
  2. System.out.println("Working");
  3. if (location.getWorld() == world) {
  4. Block block = location.getBlock();
  5. byte doordata = doorblocks.get(location);
  6. block.setTypeIdAndData(Material.WOOD_DOOR.getId(), doordata, false);
  7.  
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement