Skip to content

Commit

Permalink
add LabyModInstalledAddonsUpdateEvent & fix broken BetterPerspective …
Browse files Browse the repository at this point in the history
…link
  • Loading branch information
jumpingpxl committed Jul 25, 2024
1 parent 16edf42 commit 70f339b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions docs/pages/server/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

2 changes: 1 addition & 1 deletion docs/pages/server/labymod/moderation/disable-addons.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 70f339b

Please sign in to comment.