kangarko / ChatControl-Red

Issue tracker and documentation for the next generation ChatControl Red, the most advanced chat management plugin.
49 stars 23 forks source link

PNG Message #1053

Closed SirCraftypants closed 3 years ago

SirCraftypants commented 3 years ago

Minecraft Version: 1.16.5 MySQL: true BungeeCord: false

I've checked the tutorial page but can''t find the answer to this question.

unknown

Is it possible to do this with CCR, have a png display with a message along side it post by command in a private message to a player?

ElBananaa commented 3 years ago

Minecraft Version: 1.16.5 MySQL: true BungeeCord: false

I've checked the tutorial page but can''t find the answer to this question.

unknown

Is it possible to do this with CCR, have a png display with a message along side it post by command in a private message to a player?

Hey! Yes this is totally possible to do this with the plugin. Actually, the image shown ingame is a special character which was changed in a resource pack. Here's a tutorial to do this : https://www.reddit.com/r/admincraft/comments/llrgty/does_anyone_know_how_to_put_a_image_on_the/

SirCraftypants commented 3 years ago

I followed the instructions to the letter.

created a 75x75 pixel png image named sir_craftypants.png, added the file locations namespace customitems..

added the following code to the default.json file

{"file":"customitems:font/sir_craftypants.png","chars":["\ue238"],"height":9,"ascent":5,"type":"bitmap"}

Uploaded and loaded the resource pack on the server, even though i'm admin/opped, i disabled deny unicode.

typed \ue238 in chat and all that appeared was \ue238.

kangarko commented 3 years ago

No sorry that's a different way of showing those images. We only support our own custom low-resolution parser right now.

ElBananaa commented 3 years ago

I followed the instructions to the letter.

created a 75x75 pixel png image named sir_craftypants.png, added the file locations namespace customitems..

added the following code to the default.json file

{"file":"customitems:font/sir_craftypants.png","chars":["\ue238"],"height":9,"ascent":5,"type":"bitmap"}

Uploaded and loaded the resource pack on the server, even though i'm admin/opped, i disabled deny unicode.

typed \ue238 in chat and all that appeared was \ue238.

Hey! It didn't work because you don't have to type \ue238 but the actual character. As you can see on this website (https://www.fileformat.info/info/unicode/char/e238/index.htm) the character is actually . (You can find it near : string.toUpperCase().

SirCraftypants commented 3 years ago

I followed the instructions to the letter. created a 75x75 pixel png image named sir_craftypants.png, added the file locations namespace customitems.. added the following code to the default.json file {"file":"customitems:font/sir_craftypants.png","chars":["\ue238"],"height":9,"ascent":5,"type":"bitmap"} Uploaded and loaded the resource pack on the server, even though i'm admin/opped, i disabled deny unicode. typed \ue238 in chat and all that appeared was \ue238.

Hey! It didn't work because you don't have to type \ue238 but the actual character. As you can see on this website (https://www.fileformat.info/info/unicode/char/e238/index.htm) the character is actually . (You can find it near : string.toUpperCase().

My images didn't work because the metadata was missing from my font/default.json file, I've fixes it now and my image ranks and images are working in luckperms ranks and chat.