Get Player Location

Discussion in 'Plugin Development' started by Oxore99, Jul 14, 2014.

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

    Oxore99

    Hi eveyone,
    I just wanted to know how to get the player location for my plugin.
    I want that when a player type "/spchest" a chest spawn near the player.
    I tried with getSpawnLocation and the chest spawns at the spawn of the world ...but i don't know how to spawn the chest near the player (getPlayerLocation does'nt exist in Bukkit :/)
    Thanks
     
  2. Offline

    Gater12

  3. Offline

    Oxore99

    I tried with getLocation but it didn't work cause I wrote getServer.getLocation
    And with only getLocation it works fine! Thanks :D
    oh and by the way .. someone know how to allow a player to use the command only 1 time during idk 30min?(it's with timer event or idk??) :)
     
  4. Offline

    Gater12

Thread Status:
Not open for further replies.

Share This Page