mirror of
https://github.com/ME1312/SubServers-2.git
synced 2025-02-17 20:21:33 +01:00
Updated SubData (markdown)
parent
56944504a8
commit
675dee1b5c
@ -13,10 +13,10 @@ This is the current edition of SubData. SubServers.Bungee opens a TCP port (defa
|
||||
}
|
||||
}
|
||||
```
|
||||
`f` — Packet Forward Address (Server-bound only, Optional): Connected address to forward packet to.<br>
|
||||
`n` — Packet Channel: Used on the receiving end to decide which set of decoders to select from.<br>
|
||||
`h` — Packet Handle: Used on the receiving end to decide which decoder to use from the set selected.<br>
|
||||
`v` — Packet Version: Used to determine if the incoming packet is compatible with the receiving code.<br>
|
||||
`f` — Packet Forward Address (Server-bound only, Optional): Destination to forward packet to.<br>
|
||||
`n` — Packet Channel: Used to determine which set of decoders to select from.<br>
|
||||
`h` — Packet Handle: Used to determine which decoder to use from the set selected.<br>
|
||||
`v` — Packet Version: Used to verify that the incoming packet is compatible with the decoder.<br>
|
||||
`c` — Packet Contents (Optional): This is the data that will be passed to the receiving code.<br>
|
||||
|
||||
Of course, SubAPI handles this all for you, but if you are looking to create a custom application this information may be useful to you. The SubAPI way to create a packet is to create a new class and implement `PacketIn` and/or `PacketOut` and register it via `SubData.registerPacket()`.
|
||||
|
Loading…
Reference in New Issue
Block a user