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

Prevent server from saving Worlds

Discussion in 'Development' started by Fludixx, Jun 13, 2018.

  1. Fludixx

    Fludixx Creeper

    Messages:
    4
    GitHub:
    fludixx
    How can I prevent my game from saving a World?
    I tried:
    PHP:
    $this->getServer()->loadLevel("arena");
    $this->getServer()->getLevelByName("arena")->setAutoSave(false);
    I unloaded the level and Loaded it again, but the changes got saved.

    PHP:
    $this->getServer()->unloadLevel("arena");
    $this->getServer()->loadLevel("arena");
     
  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.