Skript & Simplesclans

  • 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!

Feb 21, 2025
2
0
1
Good morning! I'm Brazilian and I'm creating a scripted chat for my server. I want to include the clan tag to appear in the chat but I've tried everything and it doesn't work every time I get an error. I will leave my code below.


Code:
command /chat [<text>]:
    trigger:
        broadcast "&8[Chat]: %player's prefix% %simpleclans_clan_color_tag% &f%player%:&7 %colored arg 1%"


Sorry for my English, I'm using Google Translate
 
Last edited:
Good morning! I'm Brazilian and I'm creating a scripted chat for my server. I want to include the clan tag to appear in the chat but I've tried everything and it doesn't work every time I get an error. I will leave my code below.


Code:
command /chat [<text>]:
    trigger:
        broadcast "&8[Chat]: %player's prefix% %simpleclans_clan_color_tag% &f%player%:&7 %colored arg 1%"


Sorry for my English, I'm using Google Translate
You can't use placeholders like that. You must use an addon or sk-reflect etc.

Addon is the easiest way.

Download: Skript-Placeholders


Then use this to get placeholder value:
Placeholder Value

Example:
Python:
command /ping <player>:
    trigger:
        set {_ping} to the placeholder "player_ping" from arg-1 # PlaceholderAPI


Then you can use the variable like: "%{_ping}%".

Hope it helped!
 
You can't use placeholders like that. You must use an addon or sk-reflect etc.

Addon is the easiest way.

Download: Skript-Placeholders


Then use this to get placeholder value:
Placeholder Value

Example:
Python:
command /ping <player>:
    trigger:
        set {_ping} to the placeholder "player_ping" from arg-1 # PlaceholderAPI


Then you can use the variable like: "%{_ping}%".

Hope it helped!
I still haven't been able to understand or solve my problem

I want to put the simplesclan plugin prefix in the message. Example Broadcast "[CLANTAG
] Playername: hello world"
 
I still haven't been able to understand or solve my problem

I want to put the simplesclan plugin prefix in the message. Example Broadcast "[CLANTAG
] Playername: hello world"
Read my message again please :emoji_slight_smile:

You can get simpleclan clan prefix by placeholders. And you need skript-placeholders addon for it. Download it and use this:

Python:
set {_clanPrefix} to the placeholder "simpleclans_clan_color_tag" from player
send "%{_clanPrefix}%" to players