Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text replacements and UTF-8 presets (like "->" to "➔") #112

Open
Flockcode opened this issue Apr 15, 2020 · 17 comments
Open

Text replacements and UTF-8 presets (like "->" to "➔") #112

Flockcode opened this issue Apr 15, 2020 · 17 comments
Labels

Comments

@Flockcode
Copy link

Very nice and useful plugin! We use global chat and it is amazing. I would still like to have some features. For example that emotes like <3 - would be converted into a real Hart. I would love it here if everything was configurable. The second thing I would like is to have player names highlighted. If the player's name is yours, I'd love the plugin to play a sound (I'm not sure if that's possible). If you have further questions, you can contact me at Discord Hohi#1865.

I know that my English is not the best.
Best wishes
Hohi

@BrainStone
Copy link
Member

The second part is already covered in feature request #52.

Though I'm not sure if emojis are possible in Minecraft.
And I'm even less sure what you'd want to be configurable there.

@BrainStone BrainStone changed the title Chat extension Feature Emoji support (automatic text to emoji conversion) Apr 16, 2020
@Flockcode
Copy link
Author

Thanks for you're response, I saw unicode characters on some server. I don't really want emojis. Just that the Plugin convert -> to ➔ for example. I know that it's possible to replace text. There are some characters that are supported in Minecraft.

I'm very sorry, that I used the wrong title and posted the same thing on spigot. I know many developers, that never respond. Now I know, that you aren't like that.

If you have some more Questions, please aks me :D

  • Hohi

@Flockcode
Copy link
Author

Wenn ich gewusst hätte, dass Du deutscher bist, hätte ich es auch auf Deutsch schreiben können xD
Liebe Grüsse aus der Schweiz

@BrainStone
Copy link
Member

Please keep discussions on GitHub in English. I'd like to avoid having duplicates simply because the new OP didn't understand the language of the other issue. ;)

And now I understand.

@BrainStone BrainStone changed the title Emoji support (automatic text to emoji conversion) Text replacements and UTF-8 presets (like "->" to "➔") Apr 16, 2020
@BrainStone
Copy link
Member

I have a little work for you to do:

Could you please collect a list of replacements you think would be good defaults? (They will be turned off. But as a "starter" kit of sorts).

@jewome62
Copy link
Contributor

jewome62 commented May 1, 2020

Maybe pick some into LibreOffice Calc into AutoCorrect ?
I see
image

@AwesomestCode
Copy link
Contributor

@BrainStone After looking at the source code a bit, I found two places that jumped out to me as candidates for a place to implement. Which one is better: at preProcessMessage() or sendToMatchingPlayers()? I believe both are used by all chat listeners at least indirectly.

@BrainStone
Copy link
Member

That's stuff for a preprocessor. Could actually also be done with an addon, as they can add preprocessors.

@AwesomestCode
Copy link
Contributor

AwesomestCode commented May 8, 2020

So far, I have a hardcoded version (meaning that you can't change the replacements) done. Now I need to get it to work with the config...

@BrainStone
Copy link
Member

Alright we need to collect a decent list of preset replacements.

@BrainStone
Copy link
Member

Anyone...?
I'm not the someone that asked for that feature. The code is ready all we need are some decent defaults to put in the config and we are good. I have a released planned soon and I'd like to include that code.

@AwesomestCode
Copy link
Contributor

Maybe mention @Flockcode?

@Flockcode
Copy link
Author

Hey, sorry - I was AFK for nearly a month. I like your list @AwesomestCode

@BrainStone
Copy link
Member

I'm still waiting on a decent default list of replacements.

@BrainStone
Copy link
Member

Why did you close the issue?

@BrainStone BrainStone reopened this Aug 10, 2020
@Georg-code
Copy link

Okey, I'll do a list:
:( = ☹
:) = ☺
<3 = ♥
-> = →
<- = ←
? = ツ
? = ♫
? = ☢

// ? = Usefull, but don't know a code, maby somthing like Github and Discord use -> :note: = ♫

I hope this helps. If anyone wants to add more, here is a list. https://hypixel.net/threads/ツsymbols☻.787483/

@BrainStone
Copy link
Member

Thanks though I still think that list is very short. Especially a lot of smileys are missing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

5 participants