I've decided to make an API that teleports players to a random location within two locations. Before you can do anything, you have to download the classes and put them into your project. Download link: me.zip Next, you have to create a cuboid using two locations. These will be the locations that the player should be teleported between. Code:java Cuboid cuboid = new Cuboid(min, max); Now that you have the cuboid, you can generate a spawn and teleport your player there. Code:java player.teleport(GenerateSpawn.generateRandomSpawn(cuboid, player); That's it! Your player is now teleported and he/she didn't spawn in a block.