From 70f339bfa5c3f33e2667acf416b947ad0b58bd9f Mon Sep 17 00:00:00 2001 From: Nico Date: Thu, 25 Jul 2024 17:19:08 +0200 Subject: [PATCH] add LabyModInstalledAddonsUpdateEvent & fix broken BetterPerspective link --- docs/pages/server/events.md | 11 +++++++++++ .../pages/server/labymod/moderation/disable-addons.md | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/pages/server/events.md b/docs/pages/server/events.md index 765e651..258c214 100644 --- a/docs/pages/server/events.md +++ b/docs/pages/server/events.md @@ -41,3 +41,14 @@ The following methods are available in this event: - `#getSender()` - Returns the unique id player that has sent the packet. - `#getLabyModPlayer()` - Returns the `LabyModPlayer` object of the player that has sent the packet. **Can be `null` if it's not a LabyMod player.** + +## LabyModInstalledAddonsUpdateEvent + +The `LabyModInstalledAddonsUpdateEvent` is fired either after the server received `InstalledAddonsResponsePacket` or `AddonStateChangedPacket`. + +The following methods are available in this event: + +- `#protocolService()` - Returns the `LabyModProtocolService` instance. +- `#labyModPlayer()` - Returns the `LabyModPlayer` object of the player. +- `#installedAddons()` - Returns the already updated `InstalledAddonsResponse` object which can also be accessed via `LabyModPlayer#installedAddons`. + diff --git a/docs/pages/server/labymod/moderation/disable-addons.md b/docs/pages/server/labymod/moderation/disable-addons.md index 23277b7..d31d230 100644 --- a/docs/pages/server/labymod/moderation/disable-addons.md +++ b/docs/pages/server/labymod/moderation/disable-addons.md @@ -10,7 +10,7 @@ Reverting the forced disabled state is also possible via the same packet. ## Disabling Addons ???+ danger "Note" - Some addons also provide special permissions to disable certain features. For user experience sake, please consider disabling these permissions instead of the whole addon (f.e. [BetterPerspective](#)). + Some addons also provide special permissions to disable certain features. For user experience sake, please consider disabling these permissions instead of the whole addon (f.e. [BetterPerspective](/pages/server/addons/betterperspective/)). ### Via LabyModPlayer (Recommended)