Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static boolean isExposed(Player p) {
- int blockY = p.getLocation().getBlockY();
- for(int i = blockY; i < 256; i++) {
- if(!p.getLocation().getWorld().getBlockAt(p.getLocation().getBlockX(),
- i, p.getLocation().getBlockZ()).getType().equals(Material.AIR))
- return true;
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement