mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-20 15:41:33 +00:00
Rename AutoUpdater -> UpdateChecker
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user