diff --git a/SourceQuery/SourceQuery.php b/SourceQuery/SourceQuery.php index a29d7f3..339a043 100644 --- a/SourceQuery/SourceQuery.php +++ b/SourceQuery/SourceQuery.php @@ -58,6 +58,7 @@ /** * Source rcon sent */ + const SERVERDATA_REQUESTVALUE = 0; const SERVERDATA_EXECCOMMAND = 2; const SERVERDATA_AUTH = 3; diff --git a/SourceQuery/SourceRcon.php b/SourceQuery/SourceRcon.php index 06a2e51..0a77d58 100644 --- a/SourceQuery/SourceRcon.php +++ b/SourceQuery/SourceRcon.php @@ -145,7 +145,7 @@ // See https://developer.valvesoftware.com/wiki/Source_RCON_Protocol#Multiple-packet_Responses if( StrLen( $Data ) >= 4000 ) { - $this->Write( SourceQuery::SERVERDATA_RESPONSE_VALUE ); + $this->Write( SourceQuery::SERVERDATA_REQUESTVALUE ); do {