diff --git a/docs/developers/lightweight/introduction.mdx b/docs/developers/lightweight/introduction.mdx index 1c88f577..dc7b49ef 100644 --- a/docs/developers/lightweight/introduction.mdx +++ b/docs/developers/lightweight/introduction.mdx @@ -24,4 +24,5 @@ The message format used to communicate, follows a loosely structured JSON schema ### Usage Methods -TODO +🔗 [Protobuf](/apollo/developers/lightweight/protobuf/getting-started)
+🔗 [JSON](/apollo/developers/lightweight/json/getting-started)
diff --git a/docs/developers/lightweight/json/getting-started.mdx b/docs/developers/lightweight/json/getting-started.mdx index b531dfcc..bed60847 100644 --- a/docs/developers/lightweight/json/getting-started.mdx +++ b/docs/developers/lightweight/json/getting-started.mdx @@ -1,4 +1,4 @@ -import { Tab, Tabs } from 'nextra-theme-docs' +import { Callout } from 'nextra-theme-docs' # Getting Started @@ -19,4 +19,4 @@ While constructing messages, note that the `@type` field isn't required if the m 🔗 [Common Apollo Objects](/apollo/developers/lightweight/json/object-util)
🔗 [Adventure Util](/apollo/developers/lightweight/json/adventure-util)
-TODO mention module examples +For examples of module integration, refer to the specific Module pages. Each page contains code samples under the `Manual JSON Object Construction` tab. For instance, you can find sample code for the `BorderModule` on its dedicated page [BorderModule](/apollo/developers/modules/border#sample-code) in the `Sample Code` section. diff --git a/docs/developers/lightweight/json/player-detection.mdx b/docs/developers/lightweight/json/player-detection.mdx index 04e9a80c..ad182689 100644 --- a/docs/developers/lightweight/json/player-detection.mdx +++ b/docs/developers/lightweight/json/player-detection.mdx @@ -1,3 +1,5 @@ +import { Callout } from 'nextra-theme-docs' + # Player Detection ## Overview @@ -12,11 +14,11 @@ This example demonstrates how to detect whether a player is using Lunar Client b ## Integration ```java -public class ApolloPlayerProtoListener implements Listener { +public class ApolloPlayerJsonListener implements Listener { private final Set playersRunningApollo = new HashSet<>(); - public ApolloPlayerProtoListener(ApolloExamplePlugin plugin) { + public ApolloPlayerJsonListener(ApolloExamplePlugin plugin) { Messenger messenger = Bukkit.getServer().getMessenger(); messenger.registerIncomingPluginChannel(plugin, "lunar:apollo", (s, player, bytes) -> { }); messenger.registerIncomingPluginChannel(plugin, "apollo:json", (s, player, bytes) -> { }); diff --git a/docs/developers/lightweight/protobuf/getting-started.mdx b/docs/developers/lightweight/protobuf/getting-started.mdx index 8cb62549..c06832c9 100644 --- a/docs/developers/lightweight/protobuf/getting-started.mdx +++ b/docs/developers/lightweight/protobuf/getting-started.mdx @@ -70,4 +70,5 @@ Available fields for each message, including their types, are available on the B 🔗 [Apollo Serverbound packets](/apollo/developers/lightweight/protobuf/serverbound-packets)
🔗 [Apollo Roundtrip packets](/apollo/developers/lightweight/protobuf/roundtrip-packets)
-TODO mention module examples +For examples of module integration, refer to the specific Module pages. Each page contains code samples under the `apollo-protos library` tab. For instance, you can find sample code for the `BorderModule` on its dedicated page [BorderModule](/apollo/developers/modules/border#sample-code) in the `Sample Code` section. +