Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (!spawnWorld.isEmpty()) {
- CraftWorld cw = (CraftWorld)Bukkit.getServer().getWorld(spawnWorld);
- if(cw != null && M() != null) {
- world = cw.getHandle();
- position = EntityHuman.getBed(cw.getHandle(), M());
- }
- }
- if (world == null) {
- world = ((CraftWorld)Bukkit.getServer().getWorlds().get(0)).getHandle();
- position = world.getSpawn();
- }
- this.world = world;
- setPosition(position.x + 0.5, position.y, position.z + 0.5);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement