Advertisement
Guest User

Untitled

a guest
Jul 21st, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. int radius = 4;
  2.  
  3. ArrayList<Block> blocks = new ArrayList<>();
  4.  
  5. for (int x = sendLocation.getBlockX() - radius; x <= sendLocation.getBlockX() + radius; x++)
  6. for (int y = sendLocation.getBlockY(); y <= sendLocation.getBlockY() + radius; y++)
  7. for (int z = sendLocation.getBlockZ() - radius; z <= sendLocation.getBlockZ() + radius; z++)
  8. blocks.add(sendLocation.getWorld().getBlockAt(x, y, z));
  9.  
  10.  
  11. for (Block block : blocks)
  12. if (!block.getType().equals(Material.AIR))
  13. return EvoriyaPlugin.formattedPrefix("§a§lTP") + "§cDiese Location ist nicht sicher.";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement