KingDooms Posted July 9, 2021 Share Posted July 9, 2021 (edited) So i've been trying to find an answer to why this has been happening, but idk why. Normally for names i'd like a redish-pink type color, so i use hex colors, but the problem is that the name in chat becomes the red from a color code (&c) while the name in TAB has the hex color. I tried using <##ff8f8f>, tried &#ff8f8f and tried <##ff8f8f>, but no one them worked in skript. Any fix? Name in chat: Name in tab: Edited July 9, 2021 by KingDooms Link to comment Share on other sites More sharing options...
StarBunnie Posted July 9, 2021 Share Posted July 9, 2021 24 minutes ago, KingDooms said: So i've been trying to find an answer to why this has been happening, but idk why. Normally for names i'd like a redish-pink type color, so i use hex colors, but the problem is that the name in chat becomes the red from a color code (&c) while the name in TAB has the hex color. I tried using <##ff8f8f>, tried &#ff8f8f and tried <##ff8f8f>, but no one them worked in skript. Any fix? Name in chat: Name in tab: Hmm what are you using to format the chat? Feel free to add me on discord if you: need help with plugins need help with skripts need to vent about something >[ ‧₊˚꒰ʚ Starshine ɞ ‧✦ *#2683 ]< Link to comment Share on other sites More sharing options...
KingDooms Posted July 9, 2021 Author Share Posted July 9, 2021 (edited) No chat plugins, just this code: on chat: set chat format to "&7[&a%{level::%player%}%&7] %colored player's prefix% %colored player's displayname% &8»&f %colored message%" In-game: Edited July 9, 2021 by KingDooms forgot info lol Link to comment Share on other sites More sharing options...
StarBunnie Posted July 9, 2021 Share Posted July 9, 2021 27 minutes ago, KingDooms said: No chat plugins, just this code: on chat: set chat format to "&7[&a%{level::%player%}%&7] %colored player's prefix% %colored player's displayname% &8»&f %colored message%" In-game: Try formatted instead of colored but don't use it in the message part Feel free to add me on discord if you: need help with plugins need help with skripts need to vent about something >[ ‧₊˚꒰ʚ Starshine ɞ ‧✦ *#2683 ]< Link to comment Share on other sites More sharing options...
KingDooms Posted July 9, 2021 Author Share Posted July 9, 2021 11 minutes ago, StarBunnie said: Try formatted instead of colored but don't use it in the message part Same result as the colored, color codes work but hex color transforms into the color codes. Code: In-game: Link to comment Share on other sites More sharing options...
StarBunnie Posted July 9, 2021 Share Posted July 9, 2021 39 minutes ago, KingDooms said: Same result as the colored, color codes work but hex color transforms into the color codes. Code: In-game: on chat: set {_X} to formatted player's displayname set chat format to "&7[&a%{level::%player%}%&7] %colored player's prefix% %{_X}% &8»&f %colored message%" I doubt this will make a difference but give it a shot if that doesn't work try using this instead: on chat: cancel event send formatted "&7[&a%{level::%player%}%&7] %player's prefix% %player's displayname% &8»&f %unformatted message%" to all players Feel free to add me on discord if you: need help with plugins need help with skripts need to vent about something >[ ‧₊˚꒰ʚ Starshine ɞ ‧✦ *#2683 ]< Link to comment Share on other sites More sharing options...
KingDooms Posted July 9, 2021 Author Share Posted July 9, 2021 5 minutes ago, StarBunnie said: on chat: set {_X} to formatted player's displayname set chat format to "&7[&a%{level::%player%}%&7] %colored player's prefix% %{_X}% &8»&f %colored message%" I doubt this will make a difference but give it a shot if that doesn't work try using this instead: on chat: cancel event send formatted "&7[&a%{level::%player%}%&7] %player's prefix% %player's displayname% &8»&f %unformatted message%" to all players *sigh* nope. I feel like its because of the server type, because its Paper 1.16.5 but i dont know. Link to comment Share on other sites More sharing options...
StarBunnie Posted July 9, 2021 Share Posted July 9, 2021 4 minutes ago, KingDooms said: *sigh* nope. I feel like its because of the server type, because its Paper 1.16.5 but i dont know. Hmm doubt it I'm using the second method with the cancel event and it works for me. You could try the workaround CoolProgrammer said in another post to convert the hexcodes into colorcodes like this: #ff8f8f &x &f &f &8 &f &8 &f So basically just give each letter/digit of the hexcode it's own & #ff8f8f -> &x&f&f&8&f&8&f Feel free to add me on discord if you: need help with plugins need help with skripts need to vent about something >[ ‧₊˚꒰ʚ Starshine ɞ ‧✦ *#2683 ]< Link to comment Share on other sites More sharing options...
KingDooms Posted July 9, 2021 Author Share Posted July 9, 2021 21 minutes ago, StarBunnie said: Hmm doubt it I'm using the second method with the cancel event and it works for me. You could try the workaround CoolProgrammer said in another post to convert the hexcodes into colorcodes like this: #ff8f8f &x &f &f &8 &f &8 &f So basically just give each letter/digit of the hexcode it's own & #ff8f8f -> &x&f&f&8&f&8&f Same Result Link to comment Share on other sites More sharing options...
StarBunnie Posted July 9, 2021 Share Posted July 9, 2021 Just now, KingDooms said: Same Result Hmm what confuses me the most is that if Skript can't read a hexcode it usually takes the last letter/digit it can find in the code so in theory it would be &f so your issue where it gets set to &c is really weird. Do you by any chance have another chat format line in another skript file that could be overwriting the one you're changing? We tried a lot of stuff and literally seeing no effect is rather weird/uncommon. Feel free to add me on discord if you: need help with plugins need help with skripts need to vent about something >[ ‧₊˚꒰ʚ Starshine ɞ ‧✦ *#2683 ]< Link to comment Share on other sites More sharing options...
Pryzmm Posted July 9, 2021 Share Posted July 9, 2021 6 minutes ago, KingDooms said: Same Result heres a line of code that i use that uses hex color formatting. You can try using this? The color is brown, but you can search up a online hex color picker for different colors add ancient debris named "<##614220>Netherite Clicker <##3A2713>- <##614220>[20]" with lore "&6MPC: 7500" to {Clickers::*} Owner of Lifestealed, Labs, Encore, UNOfficially and Observed OG [VIP] 12/26/20 - 10/27/2021 OG [PRO] 12/27/21 - 11/18/2022 OG [LEGEND] 11/18/2022 - 3/14/2023 [DEFAULT] 3/14/2023 - 5/8/2024 [MOD] 5/8/2024 - Present Link to comment Share on other sites More sharing options...
KingDooms Posted July 9, 2021 Author Share Posted July 9, 2021 (edited) 11 minutes ago, AgentGamerPro said: heres a line of code that i use that uses hex color formatting. You can try using this? The color is brown, but you can search up a online hex color picker for different colors add ancient debris named "<##614220>Netherite Clicker <##3A2713>- <##614220>[20]" with lore "&6MPC: 7500" to {Clickers::*} This works... its brown and everything... 17 minutes ago, StarBunnie said: Hmm what confuses me the most is that if Skript can't read a hexcode it usually takes the last letter/digit it can find in the code so in theory it would be &f so your issue where it gets set to &c is really weird. Do you by any chance have another chat format line in another skript file that could be overwriting the one you're changing? We tried a lot of stuff and literally seeing no effect is rather weird/uncommon. But I don't have any other skript overwriting the chat format... Edited July 9, 2021 by KingDooms english.mp4 Link to comment Share on other sites More sharing options...
StarBunnie Posted July 9, 2021 Share Posted July 9, 2021 1 minute ago, KingDooms said: This works... its brown and everything... But I don't have any other skript overwriting the chat format... If you haven't tried the version with the cancel event yet I highly recommend to use this I feel like it's an issue with the chat format syntax Feel free to add me on discord if you: need help with plugins need help with skripts need to vent about something >[ ‧₊˚꒰ʚ Starshine ɞ ‧✦ *#2683 ]< Link to comment Share on other sites More sharing options...
KingDooms Posted July 9, 2021 Author Share Posted July 9, 2021 Just now, StarBunnie said: If you haven't tried the version with the cancel event yet I highly recommend to use this I feel like it's an issue with the chat format syntax I already did that but again... same result Link to comment Share on other sites More sharing options...
StarBunnie Posted July 9, 2021 Share Posted July 9, 2021 7 minutes ago, KingDooms said: I already did that but again... same result oh my gosh I might know why mind checking the skript where you set your display name? Feel free to add me on discord if you: need help with plugins need help with skripts need to vent about something >[ ‧₊˚꒰ʚ Starshine ɞ ‧✦ *#2683 ]< Link to comment Share on other sites More sharing options...
KingDooms Posted July 9, 2021 Author Share Posted July 9, 2021 3 minutes ago, StarBunnie said: oh my gosh I might know why mind checking the skript where you set your display name? Sure, here's a copy: ChatFormat Copy.sk Link to comment Share on other sites More sharing options...
StarBunnie Posted July 9, 2021 Share Posted July 9, 2021 1 minute ago, KingDooms said: Sure, here's a copy: ChatFormat Copy.sk 143 B · 0 downloads Nono the display name of the player. You're using %colored player's displayname% So you had to set that somewhere Feel free to add me on discord if you: need help with plugins need help with skripts need to vent about something >[ ‧₊˚꒰ʚ Starshine ɞ ‧✦ *#2683 ]< Link to comment Share on other sites More sharing options...
semonbright Posted May 30, 2022 Share Posted May 30, 2022 well here is a site that can teach u about color , hope u enjoy it.....color code Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now