Rename AutoUpdater -> UpdateChecker

This commit is contained in:
Dylan K. Taylor
2021-08-20 19:54:08 +01:00
parent 17c7e25346
commit d488c25a1a
5 changed files with 17 additions and 17 deletions

View File

@@ -23,21 +23,21 @@ declare(strict_types=1);
namespace pocketmine\event\server;
use pocketmine\updater\AutoUpdater;
use pocketmine\updater\UpdateChecker;
/**
* Called when the AutoUpdater receives notification of an available PocketMine-MP update.
* Plugins may use this event to perform actions when an update notification is received.
*/
class UpdateNotifyEvent extends ServerEvent{
/** @var AutoUpdater */
/** @var UpdateChecker */
private $updater;
public function __construct(AutoUpdater $updater){
public function __construct(UpdateChecker $updater){
$this->updater = $updater;
}
public function getUpdater() : AutoUpdater{
public function getUpdater() : UpdateChecker{
return $this->updater;
}
}