This plugin allows for LP events to be listened to by the DiscordSRV alerts feature.
Download it here
This plugin can simply be dragged into your plugins folder and does not need any extra configuration
When using LP alerts in DiscordSRV there are a few slight differences:
- Each LP event is prefixed with the letters
LP
for example if you are looking at the LuckPerms source code,NodeAddEvent
becomesLPNodeAddEvent
- When trying to access event methods you must first use the
getEvent()
method to access the LP event object. For example if you wanted to get the name of the node added fromLPNodeAddEvent
you would use${#event.getEvent().getNode().getKey()}
- Trigger: LPNodeAddEvent
Channel: global
Embed:
Color: "#00ff00"
Description: "`${#event.getEvent().getTarget().getFriendlyName()}` has had the node `${#event.getEvent().getNode().getKey()}` set to `${#event.getEvent().getNode().getValue()}`"