Skip to main content

The mudstd.channel package

The purpose of this package is to send messages that are associated with specific communication channels a MUD server may provide. All messages are encoded as UTF-8. Message content MUST be provided in a version without any control codes, but MAY additionally by provided with ANSI codes. Channels can optionally have a assignment for a default color, but those can be overwridden using control ANSI codes in the messages.

mudstd.channel.definitions​

This command is sent once when the connection is established. It may be repeated if the channels available to the user change (e.g. by getting access to a new channel while playing).

Example​

mudstd.channel.definitions {
{
"id": "gtell",
"label": "Group Tell",
"color": "FF0000"
},
{
"id": "newbie",
"label": "Newbie",
"color": "00FFFF",
"colorANSI": 3
}
}

Parameter​

PropertyTypeRequiredDescription
idstringMandatoryA unique internal identifier for the channel - not intended to be displayed
labelstringMandatoryThe display name (e.g. for tabs, filters ..) of the channel
colorstringOptionalA RGB value for the channel color
colorANSIintegerOptionalAn ANSI color code from 0..15

mudstd.channel.event​

Sent from the server when something was written on a channel

Example​

mudstd.channel.event {
{
"chan": "gsay",
"player": "Taranion",
"msg": "Taranion says to the group: Hello all!"
}
}

Parameter​

PropertyTypeRequiredDescription
chanstringMandatoryThe channel identifier
playerstringOptionalThe name of the sender. UTF-8, no color codes. Can be omitted for system messages.
msgstringMandatoryThe message content. UTF-8, no color codes
playerANSIstringOptionalThe name of the sender. UTF-8, may contain ANSI codes
msgANSIstringOptionalThe message content. UTF-8, may contain ANSI codes