how to get the world name the player is in?

Discussion in 'Spigot Plugin Development' started by kinggoesgaming, May 29, 2015.

  1. Hi

    How do i get the world name that player is currently in. I am new to bukkit and am having a bit of a trouble. Please help

    Any help appreciated :D
     
    #1 kinggoesgaming, May 29, 2015
    Last edited: May 29, 2015
    • Informative Informative x 1
  2. Inkzzz

    Resource Staff

    • Agree Agree x 4
  3. I removed my post since they have already answer you :)
     
  4. He didn't ask to get the worlds name, he asked for the world xD
     
  5. Inkzzz

    Resource Staff

    Unless I'm tripping he asked for world name...
    [​IMG]
     
  6. oh yea thats what i was missing .getName

    And Inkzzzmc no you are not tripping :p
     
    #8 kinggoesgaming, May 29, 2015
    Last edited: May 29, 2015
    • Agree Agree x 1
  7. [​IMG]
    appears were both right/wrong.
     
  8. hmm my bad i will modify the OP to end this Right/Wrong issue right now

    EDIT 1: reread the OP and all confusions wiped away ;)
     
  9. p.getWorld() // returns the World object
    p.getWorld().getName() // returns the World name
     
    • Agree Agree x 1
    • Informative Informative x 1