Change default MOTD

"Minecraft: PE Server" is no longer accurate, "Minecraft: Bedrock
Edition Server" is too wordy, and "Minecraft: BE Server" just sounds
weird.

and I'm not calling it simply a "Minecraft Server"
This commit is contained in:
Dylan K. Taylor 2017-09-25 23:43:09 +01:00
parent 10f597cd64
commit 85ec7d9732
2 changed files with 3 additions and 3 deletions

View File

@ -590,7 +590,7 @@ class Server{
* @return string * @return string
*/ */
public function getMotd() : string{ public function getMotd() : string{
return $this->getConfigString("motd", "Minecraft: PE Server"); return $this->getConfigString("motd", \pocketmine\NAME . " Server");
} }
/** /**
@ -1483,7 +1483,7 @@ class Server{
$this->logger->info("Loading server properties..."); $this->logger->info("Loading server properties...");
$this->properties = new Config($this->dataPath . "server.properties", Config::PROPERTIES, [ $this->properties = new Config($this->dataPath . "server.properties", Config::PROPERTIES, [
"motd" => "Minecraft: PE Server", "motd" => \pocketmine\NAME . " Server",
"server-port" => 19132, "server-port" => 19132,
"white-list" => false, "white-list" => false,
"announce-player-achievements" => true, "announce-player-achievements" => true,

View File

@ -32,7 +32,7 @@ use pocketmine\utils\Config;
use pocketmine\utils\Utils; use pocketmine\utils\Utils;
class SetupWizard{ class SetupWizard{
const DEFAULT_NAME = "Minecraft: PE Server"; const DEFAULT_NAME = \pocketmine\NAME . " Server";
const DEFAULT_PORT = 19132; const DEFAULT_PORT = 19132;
const DEFAULT_MEMORY = 256; const DEFAULT_MEMORY = 256;
const DEFAULT_PLAYERS = 20; const DEFAULT_PLAYERS = 20;