Skip to content

NetherNetConfig 5.46.0 ​

final class · pocketmine\network\mcpe\nethernet\NetherNetConfig · source

Settings of the NetherNet bridge, read from server.properties and pocketmine.yml.

Properties ​

$acmeDirectory ​

php
public readonly string $acmeDirectory

$acmeDomains ​

php
public readonly string $acmeDomains

Names (or IP addresses) to get HTTPS certificates for automatically (ACME), when no certificate file is set

$acmeEmail ​

php
public readonly string $acmeEmail

$acmeHttpPort ​

php
public readonly int $acmeHttpPort

$acmeStorage ​

php
public readonly string $acmeStorage

$acmeTlsPort ​

php
public readonly int $acmeTlsPort

$advertiseAddresses ​

php
public readonly array $advertiseAddresses

$binaryPath ​

php
public readonly string $binaryPath

$bindIp ​

php
public readonly string $bindIp

$domain ​

php
public readonly string $domain

$identityFile ​

php
public readonly string $identityFile

$logFile ​

php
public readonly string $logFile

$logLevel ​

php
public readonly string $logLevel
php
public readonly bool $queryToLink

Whether the UDP port is shared without RakNet: Query datagrams then come over the link

$rakNetRelayPort ​

php
public readonly int $rakNetRelayPort

Loopback port of the RakLib relay socket when the UDP port is shared with RakNet

$requireIdentity ​

php
public readonly bool $requireIdentity

$signalingPort ​

php
public readonly int $signalingPort

$tlsCertificate ​

php
public readonly string $tlsCertificate

$tlsPrivateKey ​

php
public readonly string $tlsPrivateKey

$udpPort ​

php
public readonly int $udpPort

UDP port for WebRTC; the server port when it is shared with RakNet/Query, 0 = ephemeral ports

Methods ​

__construct() ​

php
public function __construct(string $binaryPath, string $bindIp, int $signalingPort, int $udpPort, array $advertiseAddresses, string $identityFile, string $domain, string $tlsCertificate, string $tlsPrivateKey, string $logLevel, string $logFile, bool $requireIdentity, int $rakNetRelayPort = 0, bool $queryToLink = false, string $acmeDomains = "", string $acmeEmail = "", string $acmeDirectory = "", s …

isUdpPortShared() ​

php
public function isUdpPortShared() : bool

Whether the bridge owns the server's UDP port and shares it with RakNet or Query.

locateBinary() ​

php
public static function locateBinary(string $configured, string $dataPath) : ?string

Finds the bridge program: the configured path if any, otherwise the binary shipped with the server for this platform (copied out of the phar, since a program cannot run from inside it), otherwise one placed by the server owner in <data>/bin/.

platformName() ​

php
public static function platformName() : string

Platform suffix of the bridge binaries, e.g. "windows-amd64" or "linux-arm64".

toArguments() ​

php
public function toArguments(int $linkPort) : array

Command-line arguments for the bridge program (without the program itself).

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.