Closed unilock closed 1 month ago
Apologies for the delay, I didn't even notice this PR/issue was here. I'll be working on updates for VelocityCarbonDiscord soon and will include these changes then
In that case, you might also be interested in my more up-to-date branch, which adds support for advancement and death messages, among other things: https://github.com/unilock/VelocityCarbonDiscord/tree/serverdisconnectmsg
This PR makes use of the
CarbonPlayer
provided viaCarbonChatEvent#sender
as anAudience
, making getting thePlayer
from the proxy viaProxyServer#getPlayer
unnecessary.This also allows adding the player's display name (i.e. nickname via Carbon) as a placeholder in both
discord.messages.chat_message
anddiscord.webhook.username
(anddiscord.webhook.avatar_url
, but I'm not sure what the use case of that would be).The config file has also been updated to list all placeholders provided by the plugin per config option. This fixes #4.