PHPsend

API documentation

API Doc

Class: PHPSend()

- Main class to handle connection functions.

Functions:

PHPSconnect(adress,password,port)

Connects to the PHPsend server.

Params

  • adress - String, server IP adress
  • password - String, server password (from config)
  • port (OPTIONAL) - String, server port (default: 11223)

Returns

  • 0 - Succesfull
  • 1 - Connecting error
  • 2 - Password error

PHPScommand(command)

Executes server command, the client must be connected first (PHPconnect)

Params

  • command - String, command to be executed

Returns

  • 0 - Succesfull
  • 1 - Connection error

PHPScommandAsPlayer(command, player)

Executes command as player, the client must be connected first (PHPconnect)

Params

  • command - String, command to be executed
  • player - Name of the player

Returns

  • 0 - Succesfull
  • 1 - Connection error

PHPSdisconnect()

Safely disconnects from server.

Params

  • no params

Returns

  • 0 - Succesfull
  • 1 - Connection error

You must login to post a comment. Don't have an account? Register to get one!

Facts

Date created
Aug 08, 2012
Last updated
Nov 07, 2012

Author