mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-11-22 10:35:38 +01:00
Updated Packet listeners and adapters (markdown)
parent
0c2ad75bf8
commit
cb49f15300
@ -29,4 +29,7 @@ You can read more about PacketContainers on the wiki page: [insert]
|
||||
|
||||
## Odds and Ends
|
||||
* Every packet can be cancelled with `event.setCancelled(true)` (that doesn't mean you _should_, but you _can_)
|
||||
* In some game phases (non-play ones), `event.getPlayer()` will sometimes return a TemporaryPlayer when a Bukkit player is not available. They have a reduced set of available methods and can be checked for with [`event.isPlayerTemporary()`](https://ci.dmulloy2.net/job/ProtocolLib/javadoc/com/comphenix/protocol/events/PacketEvent.html#isPlayerTemporary--)
|
||||
* In some game phases (non-play ones), `event.getPlayer()` will sometimes return a TemporaryPlayer when a Bukkit player is not available. They have a reduced set of available methods and can be checked for with [`event.isPlayerTemporary()`](https://ci.dmulloy2.net/job/ProtocolLib/javadoc/com/comphenix/protocol/events/PacketEvent.html#isPlayerTemporary--)
|
||||
|
||||
### That's all for now
|
||||
Feel free to contribute pages and/or content, though! I'll be working on adding more as I have the time.
|
Loading…
Reference in New Issue
Block a user