This is a fork of ChatFeelings by zach_attack.
Original plugin: https://github.com/zachduda/ChatFeelings License: Creative Commons CC-BY-NC-4.0 — credit must be given, non-commercial use only.
Fixes to ChatFeelingsAPI and FeelingSendEvent:
- Fixed a
NullPointerExceptioncrash when callinggetSendersMessage(),getTargetsMessage(), orgetGlobalEmoteMessage()via the API (e.g. from DiscordSRV alerts) - Root cause:
getSenderEmoteMessage()was looking up YAML keys in lowercase (e.g.stab) butemotes.ymluses Title Case keys (e.g.Stab), causing the lookup to return null - All three message methods now handle null safely with a fallback message
- Minecraft color codes (
&7,&c, etc.) are now stripped from API message returns, making them safe to use in external contexts like Discord %player%placeholder is now correctly replaced in Sender and Target messages (in addition to%sender%and%target%which were already handled)
This fork makes ChatFeelings fully compatible with DiscordSRV v1 alerts. Example alert to sync feelings to your in-game chat Discord channel:
- Trigger: com.zachduda.chatfeelings.api.FeelingSendEvent
Channel: global
Embed:
Enabled: true
Color: "#FF55FF"
Author:
ImageUrl: "https://crafthead.net/helm/${#event.getSender().getName()}"
Name: "${#event.getGlobalEmoteMessage()}"
Timestamp: falseThe original plugin supports Minecraft 1.13–1.21 and is feature-rich with particles, sound effects, screen shakes, seasonal commands, and more.
For full documentation, visit the Spigot page.
For API documentation, visit the Spigot wiki.