I thought this might come in handy and hence i posted it. Note: I found this when i was browsing through the forums. The code does not belong to me. Check if player is in a cuboid: Code:java public boolean checkCuboid(Player player, Block block1, Block block2){ checkCuboid(player.getLocation(), block1.getLocation(), block2.getLocation());}public boolean checkCuboid(Location checkLoc, Location loc1, Location loc2){ int x1 = Math.min(loc1.getX(), loc2.getX()); int y1 = Math.min(loc1.getY(), loc2.getY()); int z1 = Math.min(loc1.getZ(), loc2.getZ()); int x2 = Math.min(loc1.getX(), loc1.getX()); int y2 = Math.min(loc1.getY(), loc1.getY()); int z2 = Math.min(loc1.getZ(), loc1.getZ()); double cx = checkLoc.getX(); double cy = checkLoc.getY(); double cz = checkLoc.getZ(); return (cx > x1 && cx < x2 && cy > y1 && cy < y2 && cy > z1 && cz < z2);}