forked from HMJosh/DeathMessages
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor death message build & event params pass
Split the prefix and message body from the completed built death message. In the past, the death message component pass as one singe TextComponent. And now, it is changed to TextComponent[], the first element is prefix component, and the second the death message body. By separate passing to event, it will build / append during broadcast stage (In BroadcastXXXDeathListener) and Discord hook message send stage (In each Discord extension hook). Build twice or more for now, instead of appending them during death message build. Build twice: or more 1. In broadcastListener: console message + broadcast message to players 2. In DiscordSRV hook: discord format death message sent to discord 3. In other Discord integration hooks will add in the future There are also duplicate / similar code, but is not a big deal.
- Loading branch information
1 parent
d2c963c
commit fa9998f
Showing
21 changed files
with
736 additions
and
413 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.