mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Changed commands to use CommandSender::getServer()
This commit is contained in:
@ -41,7 +41,7 @@ class SaveOnCommand extends VanillaCommand{
|
||||
return true;
|
||||
}
|
||||
|
||||
foreach(Server::getInstance()->getLevels() as $level){
|
||||
foreach($sender->getServer()->getLevels() as $level){
|
||||
$level->setAutoSave(true);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user