Advertisement
tahg

Untitled

Jun 10th, 2011
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. if (!spawnWorld.isEmpty()) {
  2. CraftWorld cw = (CraftWorld)Bukkit.getServer().getWorld(spawnWorld);
  3. if(cw != null && M() != null) {
  4. world = cw.getHandle();
  5. position = EntityHuman.getBed(cw.getHandle(), M());
  6. }
  7. }
  8. if (world == null) {
  9. world = ((CraftWorld)Bukkit.getServer().getWorlds().get(0)).getHandle();
  10. position = world.getSpawn();
  11. }
  12. this.world = world;
  13. setPosition(position.x + 0.5, position.y, position.z + 0.5);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement