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