.teleport() doesn't work

Discussion in 'Plugin Development' started by arjanforgames, Oct 14, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    arjanforgames

    I don't see why the player is not getting teleported:
    Code:java
    1. player.teleport(new Location(Bukkit.getWorld("SumoMap"), getConfig().getInt("Sumo Signs.Locations.Spawn17.X"), getConfig().getInt("Sumo Signs.Locations.Spawn17.Y"), getConfig().getInt("Sumo Signs.Locations.Spawn17.Z")));
    2. clearInventory(player);
    3. player.getWorld().playSound(player.getLocation(), Sound.ENDERMAN_TELEPORT, 5, 5);


    The path of the location is just fine.
     
  2. arjanforgames
    Teleport works. There may be an error with your config.
     
  3. Offline

    MrSparkzz

    arjanforgames
    I found your problem
    Code:java
    1.  
    2. .getInt("Sumo Signs.Locations.Spawn17.X")
    3.  

    & 2 others
    Configs don't work like that.
     
Thread Status:
Not open for further replies.

Share This Page