Multiple webhook support is here along other improvements! You can now define which events go to which Discord webhooks.
Please delete any existing configuration files when updating since there have been many configuration changes since v3.
Changes
- ⚠️ Bumped Java version to 21
- ⚠️ Paper 1.19.4 or higher is now required
- ⚠️ Multiple configuration breakages
- ⚠️ Renamed
webhooklogger.reload
permission towebhooklogger.command.reload
- Ability to define multiple webhooks
- Removed redundant "enabled" option from event configurations
- Rewrote commands
- Added localization system
WebhookChatLogger is now WebhookLogger!
The scope of the plugin has expanded and WebhookLogger can now log more variety of events in addition to the existing chat event. This includes events such as commands, player deaths and player joins/quits.
Please note that this is a new major version which comes with breaking changes.
Configuration changes
With the name change the configuration directory has also respectively changed to plugins/WebhookLogger
.
The configuration has also split into two seperate files now that there are more events. All configuration options for each event is now under the events.yml
configuration file where rest of the settings remain in the config.yml
file.
The Discord webhook configuration now takes a URL instead of ID and token. This is one less step for the end user and will simplify the configuration process.
This is almost complete redesign of the plugin bringing many new features and improvements. This also means that the config will need to be regenerated for the plugin to function properly.
❗Please delete the old config when updating the plugin!❗
Message format
The message format is no longer under the Discord section and instead is shared between webhooks. In addition, the format now supports MiniMessage alongside MiniPlaceholders. Keep in mind that webhooks might not support all the formatting options such as colors.
Thanks to MiniMessage there are now more built in placeholders such as <author_display_name>
and <timestamp>
.
Discord
The Discord client got also a complete redesign in this update. The messages are now bundled together and sent as a single message every x seconds which significantly reduces the amount of post requests made to Discord. This means that when setup properly WebhookChatLogger should no longer hit rate limits even with hundreds of players online.
You can also now configure text replacements such as replacing "@" with "(at) which prevent's people from tagging people or roles. The replacements also support regex so you can also use it to replace more complex patterns when needed.
The messageStyle
config option was removed as being redundant due to the features described above.
There is also new guide on setting up the discord webhook on the wiki found here.