mirror of
https://github.com/xPaw/PHP-Source-Query.git
synced 2026-07-14 07:54:49 +02:00
Compare commits
2 Commits
2.1.0
...
e96807bb24
| Author | SHA1 | Date | |
|---|---|---|---|
| e96807bb24 | |||
| 7f2e4484d5 |
@@ -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.
|
[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
|
## Requirements
|
||||||
* [Modern PHP version](https://php.net/supported-versions.php) (7.4 or newer)
|
* [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)
|
* 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
|
## Protocol Specifications
|
||||||
* https://developer.valvesoftware.com/wiki/Server_queries
|
* https://developer.valvesoftware.com/wiki/Server_queries
|
||||||
|
|||||||
@@ -58,6 +58,7 @@
|
|||||||
/**
|
/**
|
||||||
* Source rcon sent
|
* Source rcon sent
|
||||||
*/
|
*/
|
||||||
|
const SERVERDATA_REQUESTVALUE = 0;
|
||||||
const SERVERDATA_EXECCOMMAND = 2;
|
const SERVERDATA_EXECCOMMAND = 2;
|
||||||
const SERVERDATA_AUTH = 3;
|
const SERVERDATA_AUTH = 3;
|
||||||
|
|
||||||
|
|||||||
@@ -145,7 +145,7 @@
|
|||||||
// See https://developer.valvesoftware.com/wiki/Source_RCON_Protocol#Multiple-packet_Responses
|
// See https://developer.valvesoftware.com/wiki/Source_RCON_Protocol#Multiple-packet_Responses
|
||||||
if( StrLen( $Data ) >= 4000 )
|
if( StrLen( $Data ) >= 4000 )
|
||||||
{
|
{
|
||||||
$this->Write( SourceQuery::SERVERDATA_RESPONSE_VALUE );
|
$this->Write( SourceQuery::SERVERDATA_REQUESTVALUE );
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user