Commands and Protocol - Pihl17/PCSS2018---TheRealGroup1-Client GitHub Wiki

Commands and protocol

Displayed here is the list of commands to be used for the client. The server & client are both using TCP protocol to communiate.

/join arg

To Join a lobby, if no lobby with specified name exist, a lobby will be created

/leave

To leave your current lobby

/roll /r ndm+modifier

To roll a dice, where n is equal to the number of dice to roll and m is equal to the number of sides of the dice. n can be ommited or below 99, and 0 < m < 999

/setname arg

Changes your nickname to the arg

/whisper /w arg message

Sends a message privately to a player with the nickname arg