#i cant use [item] because of ranks with hex color

1 messages · Page 1 of 1 (latest)

charred depot
#

???

#

your else is clearly

#

format it correctly

#

indention

#

!indention

#

its an indention error thats all

#
if ...:
  #code
else:
  #code```
#

but in your code the else is the same indention

#

yea

#

you can check player's held item

#

and you can get the name, lore, etc.

#

one sec

#

im not saying use it

#

understand it

#

and replicate something like it

#

but your own

#

i mean any work

#

ppl can do it in diff ways

#

have what

#

you can change what it says

#

unfortunately i dont have it, i never used it

#

just adjust the skript to your liking

wicked swan
charred depot
#

open it

#

it has the skript you need

wicked swan
#

it requires skbee

charred depot
#

do you have the addon?

#

try shane bees skript

#

and show the error here

wicked swan
#

whats wrong w it

charred depot
#

then remove the line where it changes the chat format

charred depot
#

and try it

wicked swan
#

whats your format

#

why don't you use skripts chat

#

with skript you can do ```
on chat
set chat format to "%player's prefix%%player%: %message%"

#

^ requires vault

#

oops I meant on chat:

#

plugin?

charred depot
#

why dont you just put the chat format in a variable

#

and use it?

wicked swan
#

does it have placeholders for papi

charred depot
#

why dont u try something like:

set {_chatformat} to chat format```?
charred depot
wicked swan
#

get skript-placeholders and use %placeholder "placeholder" from player%

#

yea if you get skript-placeholders

#

honestly I make my own tags and chat skript

charred depot
#

Ew third party plugins

wicked swan
#

{tag} is the placeholder?

charred depot
#

What do you need

#

Why would you need a plugin for that

wicked swan
#

looks like %supremetags_tag% is the placeholder

#

it's in the spigot page

#

nvm I didn't read all of it

#

o wait {tag} is for chat plugins

#

so for skript you'd need the one I sent

#

so %placehoder "supremetags_tag" from player%

charred depot
#

🤨

wicked swan
#

it's not that hard to make a cooldown

#

%placeholder "supremetags_tag" from player%

#

idk why I'm making so many typos

#

you don't need player's displayname

#

just use player

#

you're doing %placeholder %supremetags_tag% from player% instead of %placeholder "supremetags_tag" from player%

#

send the error

#

send code

#

you're not supposed to remove the chat format

#
on chat:
  set chat format to "%player's prefix% %player's displayname% %placeholder "supremetags_tag" from player%: %message%"
    if message contains "[item]":
        cancel event
        set {_m::*} to message split at "[item]"
        set {_t::1} to text component from "%player's prefix% %player's displayname% %placeholder "supremetags_tag" from player%:"
        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}

        # SkBee 2.8.3+
        set {_t} to merge components {_t::*}
        broadcast component {_t}
#

try that

#

wait wait no

#

the indention is wrong

#

do you use tabs or space when indenting

#

alr

charred depot
#

yes cuz u didnt like it

#

u can always adjust it

#

ig follow lim ^

wicked swan
#

I just realized that discord converts tabs into spaces

#

1 sec

#

odd

#

oh you're using hex?

#

yk how to use them in skript?

#

me neither

#

1 sec

#

I think it's this <##123456>

#

but replace the numbers

#

replace the numbers with your hex numbers

#

why not

#

you using lp?

#

well I don't really use hex especially with lp + skript

#

no but I was gonna make one

#

dk

#

pretty sure theres a way to do it I just don't know

#

maybe loo up on google or smething

charred depot
#

Wut

#

This is like

#

So easy

unborn nebula
#

you were told

#

the indentation on your else line

#

should be indented the same as the if statement

unborn nebula
#

why are you bumping this?

unborn nebula
#

just set a var to the name

#

then if it contains named