#[item]

1 messages · Page 1 of 1 (latest)

bleak pine
#

Wdym the wrong format, and are there any errors on reload?

#

That's because in the second line it says set chat format to... which changed your chat format

#

You probably need to type %player's suffix% not %suffix%

#

You could just get rid of the line that changes the chat format

#

Me neither

#

does it work when you hover over it?

#

like does it show the player's tool?

#

alright one second

deep sleet
#

you need to combine them mike

#

send merged components x to all players

bleak pine
#

just get rid of the last couple lines

        # SkBee 1.16.0+
        broadcast components {_t::}

        # SkBee 1.15.3-
        send components {_t::} to all players and console```
this part ^
deep sleet
bleak pine
#

doesn't set {_t} to merge components {_t::} do that?

deep sleet
#
    if message contains "[item]":
        cancel event
        set {_m::} to message split at "[item]"
        set {_t::1} to text component from "&7[&b%world of player%&7] &a%player% &7>> "
        set {_t::2} to text component from {_m::1}
        set {_t::3} to text component from "&7["
        if name of player's tool is set:
            set {_t::4} to text component from name of player's tool
        else:
            set {_t::4} to translate component from player's tool
            set color format of {_t::4} to light blue
        set hover event of {_t::4} to hover event showing player's tool
        set {_t::5} to text component from "&7]&r"
        set {_t::6} to text component from {_m::2}

        set {_t} to merge components {_t::}
        broadcast component {_t}```
deep sleet
bleak pine
#

👍

deep sleet
#

skript doesn't have placeholder support

#

but you can do %player's prefix%

bleak pine
#

I don't think they work with skript a ton. jsyk

deep sleet
#

what plugin are you using for chat

#

can you send me your config

#

or the owner part

#

of the config

bleak pine
#

This is the formatting he wants

deep sleet
bleak pine
#

kk i wasn't sure if that's what you were looking for or something else

deep sleet
#

you can use skript-placeholders if you want ig

agile pine
#

read the wiki

#

please do not ping me

#

skript-placeholders, it's a skript addon, google will do it

#

wiki =/= docs

deep sleet
bleak pine
#

You did prefix% instead of %prefix% so it's giving you an error

agile pine
#

he'll get an error anyway

bleak pine
#

Yea

#

I don't think he actually knows skript... so...

luckily this is the perfect place to learn : D

agile pine
#

no you did not

#

brother

#

player's prefix

#

it's an expression

bleak pine
#

You didn't close %player's prefix% again

#

then it got cut off in the screenshot

#

What are you doing?

agile pine
#

show sk info

bleak pine
#

You don't have vault

agile pine
#

you need vault

#

rip

#

try it anyway

bleak pine
#

I'm running it on 1.18.2

agile pine
#

hex colors are not formatted the same way everywhere

#

there's a function to convert this to skript's hex format

#

idk

#

i never have this issue

bleak pine
#

Does there happen to be an existing translator from those hex codes to skript hex codes?

#

I have run into a similar issue before

#

In order to do the tags in skript with chatex you'd need that skript placeholder plugin in order to get the placeholder from that plugin to skript

#

& hex codes won't fix anything for skript

agile pine
#

no

bleak pine
#

skript sees them as <##000000>

agile pine
#

skript's hex format is <##hheexx>

#

double ## in sk files

#

no

#

you're taking this way too straight forward

#

the display name contains hex colors

#

which are formatted incorrectly

#

for you to fix this you'd need to split the display name and maybe use regex to replace the hex format with stuff and shi

#

thats why i mentioned a function that does that

#

try using discord's search bar to find it

#

bad take

#

doesnt help you improve, is spoon feeding

#

read what i said earlier