1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

How to change getLevel()->getName() to get the name of the folder from the world?

Discussion in 'Development' started by LewBr, Jan 12, 2018.

  1. LewBr

    LewBr Zombie

    Messages:
    385
    GitHub:
    lewbr
    How to change this:
    $sender->getLevel()->getName() == "SkyWars"
    to get the name of the folder from the world? i want to do this by getting the name of the folder, and not what is on the file of the world name.

    Help.
     
  2. Kabluinc

    Kabluinc Baby Zombie

    Messages:
    129
    PHP:
    $sender->getLevel()->getFolderName()
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.