Jump to content
  • 0

[SKRIPT] Help on a skript


Lapzzo

Question

I made this mention skript:

 

on chat:
    loop all players:
        if message contains "%loop-player%":
            replace all "%loop-player%" with "&6@%loop-player%&r" in message
            play sound "ENTITY_EXPERIENCE_ORB_PICKUP" to loop-player
            send loop-player title "&c%player%" with subtitle "&cMentioned you!" for 5 seconds

 

But everything works except for one thing. In the chat it doesnt replace Name with @Name like how its meant to.

Any help?

 

imgonline-com-ua-resize-CNNkL1drx5M-removebg-preview.png.d6a8ae8b5eb862005fb056c21f934200.png

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Hey there,

I just tested the skript and everything appears to work. Which skript addons do you have?

Also, you should post this in Skript Discussion instead next time.

SkripterMan

Joined Minehut on 4/21/16
Owner of CareSMP.minehut.gg


VIP - 6/21/17
LEGEND - 18/12/20
MARKET MAKER - 5/6/21


Discord: SkripterMan#0001

Link to comment
Share on other sites

  • 0

Hey there,

I had the skript addon "MorkazSK" on my server when it worked. I'm pretty sure that shouldn't affect it although it appears to be the only difference. I would not use 1.17 with skript as there are many bugs. You also need SkRayFall to send titles although it appears you have it.

Edited by SkripterMan

SkripterMan

Joined Minehut on 4/21/16
Owner of CareSMP.minehut.gg


VIP - 6/21/17
LEGEND - 18/12/20
MARKET MAKER - 5/6/21


Discord: SkripterMan#0001

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...