/**
  * @param BaseAPI $api
  */
 public function __construct(BaseAPI $api)
 {
     parent::__construct($api->getEssentialsPEPlugin());
     $this->api = $api;
 }
 /**
  * @param Server $server
  */
 public function onCompletion(Server $server)
 {
     $server->getLogger()->info(TextFormat::AQUA . "[EssentialsPE]" . TextFormat::YELLOW . " Successfully updated to version " . TextFormat::GREEN . $this->newVersion . TextFormat::YELLOW . ". To start using the new features, please fully restart your server.");
     $this->api->scheduleUpdaterTask();
 }