Add a second suffix

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

    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!

Status
Not open for further replies.

DOGGYR3MIX

Member
Jan 17, 2021
3
0
1
24
I want to add a second suffix based on what the player sets. I am using Pex and Skript. The format would be:
[Prefix] [Displayname] [Suffix] [Suffix2]:
The prefix is ingame rank, the suffix is donator rank and the suffix2 will be custom tag. I can make it so the player can set their own suffix but that changes the donator one. Ive tried it so when they set their custom tag it takes their donator rank suffix and places it before their tag such as “[Suffix1] [Suffix2]” but then if the donator rank was to change the suffix would stay the same causing problems. Thanks for any help.
 
I want to add a second suffix based on what the player sets. I am using Pex and Skript. The format would be:
[Prefix] [Displayname] [Suffix] [Suffix2]:
The prefix is ingame rank, the suffix is donator rank and the suffix2 will be custom tag. I can make it so the player can set their own suffix but that changes the donator one. Ive tried it so when they set their custom tag it takes their donator rank suffix and places it before their tag such as “[Suffix1] [Suffix2]” but then if the donator rank was to change the suffix would stay the same causing problems. Thanks for any help.
Skript's suffix will bypass any permission plugin which kinda sucks. But here you go I guess... i dont even know how to clear it so im kinda stuck but it's ok
Code:
command /setsuffix <text>:
  trigger:
    set {_suffix.%player%} to player's suffix
    wait 2 ticks
    set player's suffix to coloured "%{_suffix.%player%}% %arg-1%"
    send "&aYay, you got your suffix!"
   
command /resetsuffix:
  trigger:
    set player's suffix to ""
    send "&aSuccess."
 
Status
Not open for further replies.