rswiki-book/src/317/317-Send-add-ignore.md

32 lines
851 B
Markdown
Raw Permalink Normal View History

2018-10-13 09:48:41 -04:00
# Send ignored users
Sends the IDs of all the users that this player has in their ignore.
2018-07-03 00:31:18 -04:00
2018-10-13 09:48:41 -04:00
Note: By looking at the rest of the 317 protocol, there doesn't seem to be a way to change the list dynamically.
It seems as though that whenever the player decides to add or remove a player from their list, it must send all the values again.
2018-07-03 00:31:18 -04:00
2018-10-13 09:48:41 -04:00
## Packet Details
| Key | Value |
|--|--|
| Name | Send ignored users |
| Description | Sends a list of all the ignored player IDs |
| Opcode | 214 |
| Type | VARIABLE_SHORT |
| Length | N/A |
| Revision | 317 |
2018-07-03 00:31:18 -04:00
2018-10-13 09:48:41 -04:00
## Packet Structure
| Data Type | Description |
|--|--|
| Long block (see blow) | Player name |
2018-07-03 00:31:18 -04:00
2018-10-13 09:48:41 -04:00
## Long block
This packet has a slightly different structure than the other packets.
2018-07-03 00:31:18 -04:00
2018-10-13 09:48:41 -04:00
```java
int entries = packetSize / 8;
2018-07-03 00:31:18 -04:00
2018-10-13 09:48:41 -04:00
for (int i = 0; i < entries; i++) {
ignoreList[i] = stream.readLong();
}
```