[i] message

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Neelix_bear

Well-Known Member
Aug 11, 2023
256
8
18
How can i make a script that replaces in any message sent by a player with the item they are holding, like how when you kill someone with a renamed weapon it says "Player was killed by Player using [item with hover thingy]"
 
Using skbee i got this, but it errors out if i try to replace the in messages with the compent
Code:
on chat:
    if message contains "[i]":
        if player's tool is not air:
            set {_t} to text component from "[%player's tool's name%]"
            add hover event showing player's tool to {_t}
 
Using skbee i got this, but it errors out if i try to replace the in messages with the compent
Code:
on chat:
    if message contains "[i]":
        if player's tool is not air:
            set {_t} to text component from "[%player's tool's name%]"
            add hover event showing player's tool to {_t}
Couldn't you use something like: "set {_t} to formatted "&b<tootip:Example><reset>[Item]" "
 
Couldn't you use something like: "set {_t} to formatted "&b<tootip:Example><reset>[Item]" "
1723399750290.png

Code:
on chat:
    if message contains "[i]":
        if player's tool is not air:
            set {_t} to formatted "&b<tootip:%player's tool%><reset>[Item]"
            broadcast {_t}
            replace all "[i]" in message with {_t}