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

Comments

Posts Quoted:
Reply
Clear All Quotes