Skip to content

Commit d26385d

Browse files
committed
Link mod available options in the mod status example
1 parent 2bbb3fc commit d26385d

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

docs/developers/modules/modsetting.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,13 @@ private final ModSettingModule modSettingModule = Apollo.getModuleManager().getM
3333
private void printOptionStatusExample(Player player) {
3434
Optional<ApolloPlayer> apolloPlayerOpt = Apollo.getPlayerManager().getPlayer(player.getUniqueId());
3535
apolloPlayerOpt.ifPresent(apolloPlayer -> {
36+
// https://lunarclient.dev/apollo/developers/mods/waypoints#available-options
3637
boolean waypointsEnabled = this.modSettingModule.getStatus(apolloPlayer, ModWaypoints.ENABLED);
38+
39+
// https://lunarclient.dev/apollo/developers/mods/minimap#available-options
3740
float minimapScale = this.modSettingModule.getStatus(apolloPlayer, ModMinimap.SCALE);
41+
42+
// https://lunarclient.dev/apollo/developers/mods/fov#available-options
3843
int fovDefaultFov = this.modSettingModule.getStatus(apolloPlayer, ModFov.DEFAULT_FOV);
3944

4045
apolloPlayer.sendMessage(Component.text("Waypoints Enabled: ")

example/bukkit/api/src/main/java/com/lunarclient/apollo/example/api/mods/ApolloModStatusExample.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,13 @@ private void onBlockPlace(BlockPlaceEvent event) {
7676
private void printOptionStatusExample(Player player) {
7777
Optional<ApolloPlayer> apolloPlayerOpt = Apollo.getPlayerManager().getPlayer(player.getUniqueId());
7878
apolloPlayerOpt.ifPresent(apolloPlayer -> {
79+
// https://lunarclient.dev/apollo/developers/mods/waypoints#available-options
7980
boolean waypointsEnabled = this.modSettingModule.getStatus(apolloPlayer, ModWaypoints.ENABLED);
81+
82+
// https://lunarclient.dev/apollo/developers/mods/minimap#available-options
8083
float minimapScale = this.modSettingModule.getStatus(apolloPlayer, ModMinimap.SCALE);
84+
85+
// https://lunarclient.dev/apollo/developers/mods/fov#available-options
8186
int fovDefaultFov = this.modSettingModule.getStatus(apolloPlayer, ModFov.DEFAULT_FOV);
8287

8388
apolloPlayer.sendMessage(Component.text("Waypoints Enabled: ")

0 commit comments

Comments
 (0)