Skip to content

ProxyMessageReceiveEvent 5.46.0 ​

class · pocketmine\event\server\ProxyMessageReceiveEvent · source

Extends ServerEvent

Called when another server of the pm-proxy network sent this server a plugin message with \pocketmine\network\proxy\ProxyNetwork::sendMessage(). Plugins tell their messages apart by the channel.

Methods ​

__construct() ​

php
public function __construct(string $sourceServer, string $channel, string $data)

getChannel() ​

php
public function getChannel() : string

getData() ​

php
public function getData() : string

getSourceServer() ​

php
public function getSourceServer() : string

Name of the server that sent the message.

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