Skip to content

Commit

Permalink
Close tab
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsNature committed Sep 18, 2024
1 parent 0ca8856 commit f750939
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/internals/lightweight.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ private void onRegisterChannel(PlayerRegisterChannelEvent event) {
Here are some util methods that will be used throughout shown examples, such as for sending or broadcasting packets, and a method that constructs the enable module messages.

```java

public static void sendPacket(Player player, GeneratedMessageV3 message) {
byte[] bytes = Any.pack(message).toByteArray();
player.sendPluginMessage(ApolloExamplePlugin.getPlugin(), "lunar:apollo", bytes);
Expand Down Expand Up @@ -253,6 +252,8 @@ public void resetWaypointsExample(Player viewer) {
🔗 [Receive Apollo Packet Example]((https://github.com/LunarClient/Apollo/tree/master/bukkit-example/src/main/java/com/lunarclient/apollo/example/proto/listeners/ApolloPacketReceiveProtoListener.java)) - Used to handle packets sent from the client such as the `PlayerHandshakeMessage` & `PacketEnrichment Module` packets<br/>
🔗 [Roundtrip Apollo Packet Example]((https://github.com/LunarClient/Apollo/tree/master/bukkit-example/src/main/java/com/lunarclient/apollo/example/proto/listeners/ApolloPacketReceiveProtoListener.java)) - Used to handle round-trip packets such as the ones sent by the `Transfer Module`

</Tab>

<Tab>

### Method 2: Manual JSON Object Construction
Expand All @@ -267,6 +268,4 @@ This method involves manually constructing JSON objects using a JSON library (e.
**Steps**

</Tab>


</Tabs>

1 comment on commit f750939

@LunarClientBot
Copy link
Collaborator

@LunarClientBot LunarClientBot commented on f750939 Sep 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📄 Documentation Deployment

Status:❌ Failed
Environment:preview
URL:Pending...

Please sign in to comment.