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

How do I get $level to = a specified level

Discussion in 'Facepalm' started by rektpixel, Oct 12, 2017.

  1. rektpixel

    rektpixel Baby Zombie

    Messages:
    186
    Hello
    basically as the title says I want $level to = a speciified level which in my case is 'newhub' how do I do this?
    I did this but it didn't work:
    PHP:
    $level $this->getLevel("newhub");
     
  2. AshBull

    AshBull Spider Jockey

    Messages:
    31
    Please try to do your own research next time. Server::getLevel() accepts a level ID, not name.
    PHP:
    $level $this->getServer()->getLevelByName("newhub");
     
  3. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    Posts like this belong in the facepalm section. Use an IDE
     
  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.