mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-18 19:55:33 +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;
|
||||
}
|
||||
|
||||
public function isLoaded($name)
|
||||
{
|
||||
if(isset($this->levels[$name]))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public function getDefault(){
|
||||
return $this->levels[$this->default];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user