2017 © Pedro Peláez
 

library php-source-query-class

Forked Repo to improve Mincraft-Support

image

gries/php-source-query-class

Forked Repo to improve Mincraft-Support

  • Sunday, January 12, 2014
  • by gries
  • Repository
  • 0 Watchers
  • 0 Stars
  • 100 Installations
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

PHP Source Query

Description

This class was created to query game server which use the Source query protocol, this includes all source games, half-life 1 engine games and Call of Duty: Modern Warfare 3, (*1)

The class also allows you to query servers using RCON although this only works for half-life 1 and source engine games., (*2)

Minecraft 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., (*3)

Protocol specifications can be found over at VDC

  • https://developer.valvesoftware.com/wiki/Server_queries
  • https://developer.valvesoftware.com/wiki/Source_RCON_Protocol

Supported Games

Functions

Connect( $Ip, $Port, $Timeout, $Engine ) Opens connection to a server
Disconnect( ) Closes all open connections
Ping( ) Ping the server to see if it exists
Warning: Source engine may not answer to this
GetInfo( ) Returns server info in an array
GetPlayers( ) Returns players on the server in an array
GetRules( ) Returns public rules (cvars) in an array
SetRconPassword( $Password ) Sets rcon password for later use with Rcon()
Rcon( $Command ) Execute rcon command on the server

License

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/
, (*4)

The Versions

12/01 2014

dev-master

9999999-dev

Forked Repo to improve Mincraft-Support

  Sources   Download

C-BY-NC-SA-3.0

12/01 2014

0.0.2

0.0.2.0

Forked Repo to improve Mincraft-Support

  Sources   Download

C-BY-NC-SA-3.0

11/01 2014

0.0.1

0.0.1.0

Forked Repo to improve Mincraft-Support

  Sources   Download

C-BY-NC-SA-3.0