if message contains "[item]":
cancel event
send "&cYou need to hold an item!" to player
else:
if message contains "[item]":
cancel event
set {_m::*} to message split at "[item]"
set {_t::1} to text component from "%hexfix(player's prefix)%%player%&7: "
set {_amount} to "1"
set {_amount} to item amount of player's tool
set {_t::2} to text component from {_m::1}
set {_t::3} to text component from "&7[%{_amount}%x "
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 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}```
How do i add this ⬆️ to the this ⬇️ skript without the skript breaking i already tried but it kept breaking
#Help inserting a skript into another skript without it breaking
1 messages · Page 1 of 1 (latest)

Typing in chat the format was wrong
like this for example
Hoglinda: Message
thats what is should be
but its <hoglinda> message
default format
and if i remove this ⬇️ it works
i mean
- actually get that indentation under control so this is readable
- I don't see you setting the chat format anywhere
okay, but that's only in certain sections...
also, just set the chat format instead of broadcasting
alright
set the chat format to "%hexfix(player's prefix)% %player%&8: &f%message%"```
This doesnt work
its the default message
no
this is how it looks
uhuh
send sk info
you sure there's no other on chat: events interfering?
delete skquery and skrayfall. update skbee
alr
Do you know why this doesnt work?
set {_clan} to colored "&8[<##A8A9FA>%{clan::%player's uuid%} in strict proper case%&8] "
if {clan::%player's uuid%} is not set:
set {_clan} to ""
if player's tool is air:
if message contains "[item]":
cancel event
send "&cYou need to hold an item!" to player
else:
if player's tool isn't air:
if message contains "[item]":
cancel event
set {_m::*} to message split at "[item]"
set {_t::1} to text component from "%{_clan}%%hexfix(player's prefix)% %player%&8: "
set {_amount} to "1"
set {_amount} to item amount of player's tool
set {_t::2} to text component from {_m::1}
set {_t::3} to text component from "&7[%{_amount}%x "
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 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}```
How do i fix it then?