LevelAPI and pre-map r

This commit is contained in:
Shoghi Cervantes Pueyo
2012-12-13 02:49:04 +01:00
parent 801c2736ba
commit 063f44c330
8 changed files with 115 additions and 24 deletions

View File

@ -80,6 +80,8 @@ class ServerAPI extends stdClass{ //Yay! I can add anything to this class in run
$this->server->mapName = $this->getProperty("level-name");
$this->server->mapDir = FILE_PATH."data/maps/".$this->getProperty("level-name")."/";
$this->loadProperties();
$this->server->loadMap();
//Autoload all default APIs
console("[INFO] Loading default APIs");
$dir = dir(FILE_PATH."classes/API/");