Solved Teleporting not working?

Discussion in 'Spigot Plugin Development' started by Bawbieboo, Jun 9, 2016.

  1. So, Im working on a kitpvp plugin, but I want to teleport the player when they join, but it is not working.
    heres my code

    Code (Text):

    @EventHandler
    public void onJoin(PlayerJoinEvent e) {
        Player player = e.getPlayer();

            float yaw = 90;
            float pitch = 0;
            Location spawn = new Location(player.getWorld(), 182, 9, 810, yaw, pitch);
            player.teleport(spawn);
    }
     
  2. Can you explain better, please :p
     
  3. Nvm I got it fixed thanks for trying to help!