1
0
mirror of https://github.com/xPaw/PHP-Source-Query.git synced 2026-07-14 05:24:48 +02:00

2 Commits

Author SHA1 Message Date
Pavel Djundik e96807bb24 Correct const for request value (it is still same value) 2020-12-05 12:31:51 +02:00
Pavel Djundik 7f2e4484d5 Update README.md 2020-12-05 12:16:45 +02:00
3 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -9,12 +9,12 @@ The class also allows you to query servers using RCON although this only works f
[Minecraft](http://www.minecraft.net) also uses Source RCON protocol, and this means you can use this class to send commands to your minecraft server while having engine set to Source engine.
**:warning: Please do not create issues when you are unable to retrieve information from a server, unless you can prove that there is a bug within the library.**
**:warning: Do not send me emails if this does not work for you, I will not help you.**
## Requirements
* [Modern PHP version](https://php.net/supported-versions.php) (7.4 or newer)
* 64-bit PHP or [gmp module](https://secure.php.net/manual/en/book.gmp.php)
* Web server must allow UDP connections
* Your server must allow UDP connections
## Protocol Specifications
* https://developer.valvesoftware.com/wiki/Server_queries
+1
View File
@@ -58,6 +58,7 @@
/**
* Source rcon sent
*/
const SERVERDATA_REQUESTVALUE = 0;
const SERVERDATA_EXECCOMMAND = 2;
const SERVERDATA_AUTH = 3;
+1 -1
View File
@@ -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
{