higoka / arcturus-rcon

A simple PHP wrapper for Arcturus Emulator RCON.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WARNING: THIS PROJECT IS DEPRECATED. USE THIS INSTEAD!

arcturus-rcon

A simple PHP wrapper for Arcturus Emulator RCON. Perfect for implementing in your cms.

Installation

Just download and put it in your cms. Edit line 7 in index.php with the same RCON host and port which arcturus uses.

Commands

# Send a alert to all users. Optionally with an URL.
$hotelAlert('message', 'url')

# Send a alert to all staffs.
$staffAlert('message')

# Send a alert to a user.
$userAlert(userId, 'message')

# Mute a user.
$mute(userId, duration)

# Disconnect a user.
$disconnect(userId)

# Send credits to a user.
$sendCredit(userId, amount)

# Send pixels to a user. (aka. Duckets)
$sendPixel(userId, amount)

# Send points to a user. (aka. Diamonds)
$sendPoint(userId, amount)

# Send a badge to a user.
$sendBadge(userId, badgeName)

# Send a gift to a user. Optionally with a message.
$sendGift(userId, itemId, 'message')

Example

Sending a hotelAlert.

socket_write($socket, $hotelAlert('hello world'));

Giving a user 10k credits.

socket_write($socket, $sendCredit(5, 10000));

About

A simple PHP wrapper for Arcturus Emulator RCON.


Languages

Language:PHP 100.0%