Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int radius = 4;
- ArrayList<Block> blocks = new ArrayList<>();
- for (int x = sendLocation.getBlockX() - radius; x <= sendLocation.getBlockX() + radius; x++)
- for (int y = sendLocation.getBlockY(); y <= sendLocation.getBlockY() + radius; y++)
- for (int z = sendLocation.getBlockZ() - radius; z <= sendLocation.getBlockZ() + radius; z++)
- blocks.add(sendLocation.getWorld().getBlockAt(x, y, z));
- for (Block block : blocks)
- if (!block.getType().equals(Material.AIR))
- return EvoriyaPlugin.formattedPrefix("§a§lTP") + "§cDiese Location ist nicht sicher.";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement