Webhooks
What can it do?
AxDiscordLink contains a powerful webhook system, which can be used to send discord webhooks from any event on the server.
Creating new webhooks requires basic programming knowledge as it uses the event class's internals to extract variables.
As a benefit, you can send a webhook after ANY event on the server coming from any plugin. You can also use any parameter from event classes.
Example
How it works?
The java class fields and getter methods are converted into text and can be used as placeholders.
You can run methods in sub parent classes as well, for example in PlayerJoinEvent to get the player's name, first we need to get the player object from the event (getPlayer) and then the name from the player object, (getName) which results in: %getPlayer.getName%
The plugin works backwards, it first takes placeholders from the webhook and tries to find them in the event class, this way no unexpected methods are accidentally called.