Remove player update warnings

a player ingame is not going to have access to the terminal to update PM, and if they do, they can see the warning on the console themselves anyway.
This commit is contained in:
Dylan K. Taylor
2021-08-14 13:27:21 +01:00
parent ecdfd9ea26
commit 13d4131d0d
3 changed files with 0 additions and 15 deletions

View File

@ -24,9 +24,7 @@ declare(strict_types=1);
namespace pocketmine\updater;
use pocketmine\event\server\UpdateNotifyEvent;
use pocketmine\player\Player;
use pocketmine\Server;
use pocketmine\utils\TextFormat;
use pocketmine\utils\VersionString;
use pocketmine\VersionInfo;
use function date;
@ -105,14 +103,6 @@ class AutoUpdater{
$this->printConsoleMessage($messages, \LogLevel::WARNING);
}
/**
* Shows a warning to a player to tell them there is an update available
*/
public function showPlayerUpdate(Player $player) : void{
$player->sendMessage(TextFormat::DARK_PURPLE . "The version of " . $this->server->getName() . " that this server is running is out of date. Please consider updating to the latest version.");
$player->sendMessage(TextFormat::DARK_PURPLE . "Check the console for more details.");
}
protected function showChannelSuggestionStable() : void{
$this->printConsoleMessage([
"It appears you're running a Stable build, when you've specified that you prefer to run " . ucfirst($this->getChannel()) . " builds.",