Open ChickenSaysBak opened 2 years ago
Intended due to chat signing
That's kinda what I wondered. However, does ChatEvent#setMessage have any purpose then? If not, I feel like that should be mentioned on the docs.
Also, why does AsyncPlayerChatEvent#setMessage work normally? Would chat signing not apply?
Intended due to chat signing
That's kinda what I wondered. However, does ChatEvent#setMessage have any purpose then? If not, I feel like that should be mentioned on the docs.
Also, why does AsyncPlayerChatEvent#setMessage work normally? Would chat signing not apply?
Because the chat crypto is not activated in spigot afaik.
So even if I have enforce-secure-profile disabled, there's no way it can modify the message?
Currently not
After making a couple bug fixes, that works perfectly. Thank you!
I'm going to leave this open for now, because I still feel like this should be addressed on the Bungee javadoc.
because
Thanks for PR, i didnt test it before releasing because i copy&pasted it from my own network's core and it was implemented there in some different way (thats why payload tag was invaild xD).
because
Thanks for PR, i didnt test it before releasing because i copy&pasted it from my own network's core and it was implemented there in some different way (thats why payload tag was invaild xD).
I made another PR because 1.17 servers were complaining about commons-io, although I deleted the fork before it was merged and that closed the PR. I'm still a bit new to GitHub, so I'm not sure if it still lets you merge it once closed, but if not, I can redo it.
When using ChatEvent to modify a message via setMessage(), the message is changed on the Bungee side, but not on the underlying Spigot servers. Canceling the message works, but not changing the message content. In 1.18.2 and below, it works as intended, but not on 1.19.
I made 2 simple plugins for testing:
Bungee
Spigot
Output in chat:
Bungee Version: This server is running BungeeCord version git:BungeeCord-Bootstrap:1.19-R0.1-SNAPSHOT:ff5727c:1644 by md_5 Spigot Version: This server is running CraftBukkit version 3528-Spigot-56be6a8-031eaad (MC: 1.19) (Implementing API version 1.19-R0.1-SNAPSHOT)
No other plugins installed