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

Disable autosaving of a world.

Discussion in 'Development' started by MalakasPlayzMCPE, May 17, 2018.

  1. MalakasPlayzMCPE

    MalakasPlayzMCPE Zombie Pigman

    Messages:
    667
    Here is what my friend used:
    PHP:
    $this->getServer()->getLevelByName("WorldName")->setAutoSave(false);
    Here is the error:
    Code:
    Error: "Call to a member function setAutoSave() on null" (EXCEPTION) in "SkyWars/src/skywars/arena" at line 143
    The line 143 is this line
     
  2. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    Level with the name "WorldName" doesn't exist... or maybe that isn't the folder name (the level's folder name can differ from the level's name and multiple levels can have the same name but not the same folder name).
     
  3. MalakasPlayzMCPE

    MalakasPlayzMCPE Zombie Pigman

    Messages:
    667
    Ok, so the error isn't here. I will let you know when I fix 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.