Changing nametag letters ammount

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

Status
Not open for further replies.

novastosha

Well-Known Member
Jan 11, 2019
344
21
18
SkUnity Street
Hey! please if you know how to change nametag letters ammonut Addons used for NameTag syntax: MundoSK, Protocol lib

Code:
options:
    Ss: "fuck"
command rank [<text>] [<text>] [<text>]:
    trigger:
        if arg 1 is "create":
            arg 2 is set
            if {Rank2::%arg 2%} is set:
                send "&aThis rank exsits"
            else:
                send "&aRank created!"
                set {Rank2::%arg 2%} to arg 2
        if arg 1 is "setprefix":
            arg 2 is set
            arg 3 is set
            if {Rank2::%arg 2%} is set:
                set {rankprefix2::%arg 2%} to arg 3
                if {rankprefix2::%arg 2%} contains "&":
                    replace all "&" in {rankprefix2::%arg 2%} with "ยง"
                    send "&aRank prefix set! to: %{rankprefix2::%arg 2%}%"
        if arg 1 is "delete":
            arg 2 is set
            arg 3 is not set
            if {Rank2::%arg 2%} is set:
                delete {Rank2::%arg 2%}
                delete {rankprefix2::%arg 2%}
            else:
                send "&aThis rank doesn't exsit"
command rankset [<player>] [<text>]:
    trigger:
        if {Rank2::*} contains arg 2:
            set nametag of arg 1 to "%arg 1%"
            set tablist name of arg 1 to "%{rankprefix2::%arg 2%}% %arg 1%"
            set display name of arg 1 to "%{rankprefix2::%arg 2%}% %arg 1%"
            set {rankprefixFP::%player%} to {rankprefix2::%arg 2%}
            set {ranknameFP::%player%} to {Rank2::%arg 2%}
            send "&a%arg 1%'s rank set/uptaded!"
            add arg 1 to group arg 2
        else:
            send "&aThis rank doesn't exsit"
on chat:
    set {_message} to message
    if {_message} does not contain {@Ss}:
        cancel event
        broadcast "%{rankprefixFP::%player%}% %player%&f: %{_message}%" in event-player's world
    else:
        cancel event
        send "&aPlease don't swear"
        damage player by 1
 
Status
Not open for further replies.