Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Random rand = new Random();
- int z = rand.nextInt(100);
- int x = rand.nextInt(100);
- Player player = (Player) sender;
- World world = player.getWorld();
- int y = 0;
- for(int i = 256; i > 0; i--){
- if(!world.getBlockAt(x, y, z).isEmpty()){
- y = i + 1;
- break;
- }
- }
- player.teleport(new Location(world, x, y, z));
- return true;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement