mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 13:09:44 +00:00
Update RCON.php
This commit is contained in:
parent
50756dc53a
commit
b99daa20c8
1 changed files with 3 additions and 3 deletions
|
|
@ -173,7 +173,7 @@ class RCONInstance extends Thread{
|
||||||
$p = $this->readPacket($client, $size, $requestID, $packetType, $payload);
|
$p = $this->readPacket($client, $size, $requestID, $packetType, $payload);
|
||||||
if($p === false){
|
if($p === false){
|
||||||
$this->{"status".$n} = -1;
|
$this->{"status".$n} = -1;
|
||||||
continue 2;
|
break;
|
||||||
}elseif($p === null){
|
}elseif($p === null){
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
@ -182,7 +182,7 @@ class RCONInstance extends Thread{
|
||||||
case 3: //Login
|
case 3: //Login
|
||||||
if($this->{"status".$n} !== 0){
|
if($this->{"status".$n} !== 0){
|
||||||
$this->{"status".$n} = -1;
|
$this->{"status".$n} = -1;
|
||||||
continue 2;
|
break;
|
||||||
}
|
}
|
||||||
if($payload === $this->password){
|
if($payload === $this->password){
|
||||||
@socket_getpeername($client, $addr, $port);
|
@socket_getpeername($client, $addr, $port);
|
||||||
|
|
@ -194,7 +194,7 @@ class RCONInstance extends Thread{
|
||||||
}else{
|
}else{
|
||||||
$this->{"status".$n} = -1;
|
$this->{"status".$n} = -1;
|
||||||
$this->writePacket($client, -1, 2, "");
|
$this->writePacket($client, -1, 2, "");
|
||||||
continue 2;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 2: //Command
|
case 2: //Command
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue