Recommend this page to a friend! |
Download .zip |
Info | Screenshots | View files (8) | Download .zip | Reputation | Support forum (2) | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2009-07-23 (7 years ago) | Not enough user ratings | Total: 149 | All time: 8,177 This week: 1,090 |
Version | License | PHP version | Categories | |||
teeworldsserverstats 1.0 | GNU General Publi... | 4.3 | Networking, Games |
Description | Author | |||||||||||||
This package can be used to query information from a TeeWorlds game server. |
|
_________________________________________________________________ README Content: 1. About 2. Description 3. System requirements 4. Usage 5. Contact _________________________________________________________________ (1) ABOUT VERSION: 1.0 AUTHOR: Tomaž Muraus <kami[at]k5-storitve[dot]net> WEBSITE: http://www.tomaz-muraus.info (2) DESCRIPTION TeeWorldsServerStats is a simple PHP script for displaying live Tee Worlds server statistics. The following information is available: server name, version, ping, map name, gametype, current number of players, maximum number of players and list of players currently playing on the server. (3) SYSTEM REQUIREMENTS - PHP >= 4.3.0 - 1 MB of free disk space (4) USAGE 1. Include a file TeeWorldsServer.php in your PHP script 2. Create a TeeWorldsServer object - first parameter is the server address, second one is the server port and the third one is the timeout in seconds. If the default port is used (8303), second parameter can be omitted. 3. Call queryServer() method on the previously created object 4. If nothing went wrong, you can now access the server information with the following methods: getIp() -> returns server IP address getPort() -> returns server port getName() -> returns server name getVersion() -> returns server version getMap() -> returns map name getGametype() -> returns gametype getPing() -> returns server ping getPlayers() -> returns player list as an array of TeeWorldsPlayer objects Example (server address = localhost, port = 8305, timeout = 5 s): include ('TeeWorldsServer.php'); $server = new TeeWorldServer('localhost', 8305, 5); $server->queryServer(); echo $server->getName(); Two more examples (normal and console version) are located in the directory examples/. |
Screenshots | ||
Files |
File | Role | Description | ||
---|---|---|---|---|
examples (3 files, 1 directory) | ||||
LICENSE | Lic. | License | ||
README | Doc. | Readme | ||
TeeWorldsPlayer.php | Class | Player class | ||
TeeWorldsServer.php | Class | Server class |
Files | / | examples |
File | Role | Description | ||
---|---|---|---|---|
images (1 file) | ||||
console.php | Example | Console example | ||
main.css | Data | Stylesheet | ||
normal.php | Example | Website example |
teeworldsserverstats-2009-07-23.zip 172KB | |
teeworldsserverstats-2009-07-23.tar.gz 173KB | |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.