Bureaucrats, Check users, Interface administrators, Push subscription managers, Suppressors, Administrators
478
edits
No edit summary |
No edit summary |
||
== Server-to-Client Opcodes ==
These messages may be sent by the server at any time after completing the handshake and must be handled by the client.
=== adduser ===▼
Sent to indicate that one or more users have joined the VM. This will always be sent on connection.▼
▲Sent to indicate that one or more users have joined the VM. This
<table class="wikitable">
<tr><td>Opcode</td><td><code>adduser</code></td></tr>
<tr><td>Parameter 1</td><td>The username of the added user.</td></tr>
<tr><td>Parameter 2</td><td>The [[#Rank|Rank]] of the added user as an integer.</td></tr>
</table>
=== Removed User(s) ===
Parameter 2 is repeated for each user removed.
▲Sent when one or more users leaves the VM.
<table class="wikitable">
<tr><td>Opcode</td><td><code>remuser</code></td></tr>
<tr><td>Parameter 2</td><td>The username that has left the VM.</td></tr>
</table>
=== Client Renamed ===
▲'''Number''': The number of users who have left
Sent when the current client (you) is renamed, either by you or the server.
<table class="wikitable">
<tr><td>Opcode</td><td><code>rename</code></td></tr>
<tr><td>Parameter 1</td><td><code>0</code></td></tr>
<tr><td>Parameter 2</td><td>The status of the rename. See below for available values.</td></tr>
<tr><td>Parameter 3</td><td>The client's new username. This may not necessarily be the username requested by the client, as the server can refuse this request for a variety of reasons and may instead assign a guest name.</td></tr>
</table>
Possible rename statuses:
<table class="wikitable">
</table>
=== User Renamed ===
<table class="wikitable">
<tr><td>Opcode</td><td><code>rename</code></td></tr>
<tr><td>Parameter 1</td><td><code>1</code></td></tr>
<tr><td>Parameter 2</td><td>The user's old username</td></tr>
<tr><td>Parameter 3</td><td>The user's new username</td></tr>
</table>
=== Chat message ===
Sent when one or more chat messages are received.
Parameters 1 and 2 may be repeated for multiple chat messages, and this should be checked for. In current server implementations, this will only happen immediately after connection to send the chat history.
<table class="wikitable">
<tr><td>Opcode</td><td><code>chat</code></td></tr>
<tr><td>Parameter 1</td><td>The user who sent the chat message. This may be an empty string to indicate a system message sent by the server, such as the Message of the Day, or a vote notification.</td></tr>
<tr><td>Parameter 2</td><td>The chat message</td></tr>
</table>
=== size ===
== Rank ==
CollabVM has
<table class="wikitable">
'''0''': Unregistered. The default rank with no permissions that all users have prior to logging in.▼
<tr><th>ID</th><th>Name</th><th>Description</th></tr>
▲
'''2''': Admin. Has all permissions on the VM.▼
<tr><td>1</td><td>Registered</td><td>A logged in user. This is only used by servers that use CollabVM Account Authentication.</td></tr>
</table>
|