mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Apply typehints to more general pocketmine\network namespace
This commit is contained in:
@ -82,7 +82,7 @@ class RCON{
|
||||
$this->server->getLogger()->info("RCON running on $addr:$port");
|
||||
}
|
||||
|
||||
public function stop(){
|
||||
public function stop() : void{
|
||||
$this->instance->close();
|
||||
socket_write($this->ipcMainSocket, "\x00"); //make select() return
|
||||
Server::microSleep(50000);
|
||||
@ -93,7 +93,7 @@ class RCON{
|
||||
@socket_close($this->ipcThreadSocket);
|
||||
}
|
||||
|
||||
public function check(){
|
||||
public function check() : void{
|
||||
$response = new RemoteConsoleCommandSender();
|
||||
$command = $this->instance->cmd;
|
||||
|
||||
|
@ -102,11 +102,11 @@ class RCONInstance extends Thread{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function close(){
|
||||
public function close() : void{
|
||||
$this->stop = true;
|
||||
}
|
||||
|
||||
public function run(){
|
||||
public function run() : void{
|
||||
$this->registerClassLoader();
|
||||
|
||||
/** @var resource[] $clients */
|
||||
|
Reference in New Issue
Block a user