Extends
Methods
# changeTeam(TeamId)
Ask server to change team, server will send CreatePlayer with the new team.
Parameters:
Name | Type | Description |
---|---|---|
TeamId |
number
|
Team ID to change. |
# changeWeapon(WeaponId)
Ask server to change weapon
Parameters:
Name | Type | Description |
---|---|---|
WeaponId |
number
|
Weapon ID to change. |
# hitPlayer(PlayerId, HitType)
Send an Hit packet to the server.
Parameters:
Name | Type | Description |
---|---|---|
PlayerId |
number
|
The player's ID to get hitted. |
HitType |
number
|
Hit type. |
# joinGame(JoinObject)
Join in a team, normally used after StateData packet.
Parameters:
Name | Type | Description |
---|---|---|
JoinObject |
JoinObject
|
# lookAt(x, y, z)
Look at a specific coordinate.
Parameters:
Name | Type | Description |
---|---|---|
x |
number
|
|
y |
number
|
|
z |
number
|
# placeBlock(X, Y, Z)
Try to place a block in a specific coordinate.
Parameters:
Name | Type | Description |
---|---|---|
X |
number
|
X Coordinate |
Y |
number
|
Y Coordinate |
Z |
number
|
Z Coordinate |
# sendCustomReload(Clip, Reserver)
Send a reload packet with custom clip ammo and reserve ammo.
Parameters:
Name | Type | Description |
---|---|---|
Clip |
number
|
AMMO in the Clip |
Reserver |
number
|
AMMO in the Reserve |
# sendLines(Messages, ChatType, Delay)
Send multiple messages a once with a delay between them.
Parameters:
Name | Type | Description |
---|---|---|
Messages |
array
|
String array with the messages to be sent. |
ChatType |
number
|
Chat Type ID |
Delay |
number
|
Delay in ms between each message. |
# sendMessage(Message, ChatType)
Send a message in the chat.
Parameters:
Name | Type | Description |
---|---|---|
Message |
string
|
String representing the message text |
ChatType |
number
|
Chat type ID |
# sendVersion()
Send to the server your client and version infos, remember to set version using setVersionInfo() before this.
# sendVersionHandshake(Challenge)
Response to an handshake sent by the server
Parameters:
Name | Type | Description |
---|---|---|
Challenge |
number
|
The Challenge int sent by the server on VersionHandshakeInit |
# setColor(Red, Green, Blue)
Set block color.
Parameters:
Name | Type | Description |
---|---|---|
Red |
number
|
Red color amount |
Green |
number
|
Green color amount |
Blue |
number
|
Blue color amount |
# setPosition(X, Y, Z)
Set Client's position.
Parameters:
Name | Type | Description |
---|---|---|
X |
number
|
X Coordinate |
Y |
number
|
Y Coordinate |
Z |
number
|
Z Coordinate |
# setVersionInfo(VersionObjectopt)
Set the version informations for the server.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
VersionObject |
VersionInfoObject
|
<optional> |
Object with the version informations. |
# setWalkInputs(WalkInputs)
Set Client's inputs.
Parameters:
Name | Type | Description |
---|---|---|
WalkInputs |
WalkInputs
|