RadBuilder / EmojiChat

A simple, configurable, opensource plugin that adds emojis to your chat!
https://emojichat.radbuilder.net/
MIT License
43 stars 31 forks source link

Give different resource pack depending on language #14

Open Andre601 opened 4 years ago

Andre601 commented 4 years ago

What do you think should be added/changed?

I'm not sure how possible this is, but I assume you send a sort of download request to the joining player including a link for the client?

In that case, wouldn't it be possible, to enable an option that allows downloading a different RP, if the user has a specific lang set (i.e. Chinese or Korean)? I think this could be a potential solution for showing emojis instead of text.

Any additional information that you would like to provide that would be helpful/relevant?

RadBuilder commented 4 years ago

I've thought about this before, but it would require a lot more checking and looping to replace things based on the player receiving the message. It would be possible to replace normal chat messages with this easily, but not commands, signs, and other things without a lot more thinking. I'll research this more to see if more is possible, but chat messages with this option would be a good option at the least.

Andre601 commented 4 years ago

Yeah. Looking further into this, would it be quite a difficult task. Checking for the language would be fairly easy, considering Spigot offering a method to get the currently used language. The difficult part would be displaying the text, which while it might be easy on chat (Send different character to player depending on their lang) would be more difficult for things like signs, which would require packet manipulation.