mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-19 04:05:31 +00:00
Added isLoaded function to LevelAPI. Fixes #959.
This commit is contained in:
parent
3337e5980e
commit
a6cd8ece1b
@ -33,6 +33,18 @@ class LevelAPI{
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function isLoaded($name)
|
||||||
|
{
|
||||||
|
if(isset($this->levels[$name]))
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public function getDefault(){
|
public function getDefault(){
|
||||||
return $this->levels[$this->default];
|
return $this->levels[$this->default];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user