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

getSafeSpawn error

Discussion in 'Development' started by Levi, Oct 8, 2017.

  1. Levi

    Levi Skeleton

    Messages:
    955
    GitHub:
    captainleviftw
    Code:
    [18:48:44] [Server thread/CRITICAL]: Unhandled exception executing command 'mine a' in mine: Call to a member function getSafeSpawn() on null
    [18:48:44] [Server thread/CRITICAL]: Error: "Call to a member function getSafeSpawn() on null" (EXCEPTION) in "test/src/test/Main" at line 78
    
    this used to work..

    PHP:
     $player->teleport($this->getServer()->getLevelByName($c[3])->getSafeSpawn());
     
  2. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    Your error simply means that $c[3] is an invalid level name
     
    tybikman likes this.
  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.