SimTX API v24/Packets/BroadcastBanner: Difference between revisions
Appearance
SimTX API documentation |
Archive the v24 protocol reference: use the v24 templates, links and categories |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{SimTX API navigation}} | {{SimTX API v24 navigation}} | ||
{{SimTX packet | {{SimTX packet v24 | ||
| name = BroadcastBanner | | name = BroadcastBanner | ||
| id = 12 | | id = 12 | ||
| hex = 0x0C | | hex = 0x0C | ||
| direction = c2s | | direction = c2s | ||
| session = [[SimTX API/Moderation session|Moderation]] | | session = [[SimTX API v24/Moderation session|Moderation]] | ||
| size = 10 + text length | | size = 10 + text length | ||
| permission = <code>moderation.manage</code> | | permission = <code>moderation.manage</code> | ||
| group = moderation | | group = moderation | ||
}} | }} | ||
'''BroadcastBanner''' sets, replaces or clears the server-wide notice. The server pushes the result to every control session as a [[SimTX API/Packets/Banner|Banner]]. It is only accepted on a [[SimTX API/Moderation session|moderation session]]. There is no reply. | '''BroadcastBanner''' sets, replaces or clears the server-wide notice. The server pushes the result to every control session as a [[SimTX API v24/Packets/Banner|Banner]]. It is only accepted on a [[SimTX API v24/Moderation session|moderation session]]. There is no reply. | ||
== Layout == | == Layout == | ||
| Line 23: | Line 23: | ||
|} | |} | ||
{{SimTX API navbox}} | {{SimTX API v24 navbox}} | ||
[[Category:SimTX API]] | [[Category:SimTX API v24]] | ||
Latest revision as of 16:13, 24 October 2026
| Packet ID | 12(0x0C)
|
|---|---|
| Direction | Client → server |
| Session | Moderation |
| Body size | 10 + text length |
| Permission | moderation.manage
|
BroadcastBanner sets, replaces or clears the server-wide notice. The server pushes the result to every control session as a Banner. It is only accepted on a moderation session. There is no reply.
Layout[edit | edit source]
| Field | Type | Description |
|---|---|---|
packetId |
u8 |
Always 12.
|
text |
UTF |
Notice text, truncated to 512 characters. Empty clears the current notice. |
durationSeconds |
i64 |
How long the notice stays. 0 or less means no expiry. |