mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-12 16:59:44 +00:00
WorldManager: rename get/setAutoSaveTicks() to get/setAutoSaveInterval()
this is less ambiguous.
This commit is contained in:
parent
4878fc4c93
commit
698193622a
@ -408,18 +408,18 @@ class WorldManager{
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the period after which loaded worlds will be automatically saved to disk.
|
||||
* Returns the period in ticks after which loaded worlds will be automatically saved to disk.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getAutoSaveTicks() : int{
|
||||
public function getAutoSaveInterval() : int{
|
||||
return $this->autoSaveTicks;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $autoSaveTicks
|
||||
*/
|
||||
public function setAutoSaveTicks(int $autoSaveTicks) : void{
|
||||
public function setAutoSaveInterval(int $autoSaveTicks) : void{
|
||||
if($autoSaveTicks <= 0){
|
||||
throw new \InvalidArgumentException("Autosave ticks must be positive");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user