PHP Classes
elePHPant
Icontem

TeeWorlds Server Stats: Query information from a TeeWorlds game server

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   Screenshots Screenshots   View files View files (8)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2009-07-23 (5 years ago) RSS 2.0 feedNot enough user ratingsTotal: 137 All time: 7,781 This week: 1,238Up
Version License PHP version Categories  
teeworldsserverstats 1.0GNU General Publi...4.3Networking, Games
Description Author  

This package can be used to query information from a TeeWorlds game server.

It connects to a TeeWorlds game server with a given IP address and performs queries to retrieve several types of game information.

Currently it can retrieve the game type, map, version, progression, player count and details of the current players.

Picture of Toma× Muraus
Name: Toma× Muraus <contact>
Classes: 5 packages by
Country: Slovenia Slovenia
Age: ???
All time rank: 12855 in Slovenia Slovenia
Week rank: 1504 Down3 in Slovenia Slovenia Up

Details provided by the author  
     _________________________________________________________________

                                  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  
  • website_example.png
  • console_example.png
  Files folder image Files  
File Role Description
Files folder imageexamples (3 files, 1 directory)
Plain text file LICENSE Lic. License
Plain text file README Doc. Readme
Plain text file TeeWorldsPlayer.php Class Player class
Plain text file TeeWorldsServer.php Class Server class

  Files folder image Files  /  examples  
File Role Description
Files folder imageimages (1 file)
  Plain text file console.php Example Console example
  Plain text file main.css Data Stylesheet
  Plain text file normal.php Example Website example

  Files folder image Files  /  examples  /  images  
File Role Description
  Image file default.jpg Data Default map overview

 Version Control Unique User Downloads Download Rankings  
 0%Total:137All time:7,781
 This week:0This week:1,238Up