i want to prefix and suffix, help me plz

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

jomjonejame

Member
Jan 26, 2017
54
1
8
29
I want to script prefix and suffix. But this script is not work !!

code_language.skript:
loop all players:
        if {suffix::of::%player%} is set:
            make loop-player see player's suffix as "&cEnemy"
         if {prefix::of::%player%} is set:
            make loop-player see player's prefix as "%aHello"
 
Then do
code_language.skript:
set player tab name to "&cEnemy %player%" try that

upload_2017-1-26_9-58-47.png
 

Attachments

  • upload_2017-1-26_9-58-38.png
    upload_2017-1-26_9-58-38.png
    40.5 KB · Views: 270
I think you have to use NametagEdit and the Umbaska Addon in this situation. In this case it is important to now your minecraft version. In the 1.11 I think it isn't possible at the moment. In the 1.10 it is possible (see the links bellow).

Links:

NametagEdit
Umbaska 2.0 (1.10)


Code:

code_language.skript:
on join:
    set prefix of player to "&cEnemy "
    set suffix of player to "&f"
    stop

If you want to add something behind the NameTag you can use the suffix. I hope this helps a bit. If Umbaska 3.0 will receive this function in the next time you can use this in the 1.11 aswell.
 
I think you have to use NametagEdit and the Umbaska Addon in this situation. In this case it is important to now your minecraft version. In the 1.11 I think it isn't possible at the moment. In the 1.10 it is possible (see the links bellow).

Links:

NametagEdit
Umbaska 2.0 (1.10)


Code:

code_language.skript:
on join:
    set prefix of player to "&cEnemy "
    set suffix of player to "&f"
    stop

If you want to add something behind the NameTag you can use the suffix. I hope this helps a bit. If Umbaska 3.0 will receive this function in the next time you can use this in the 1.11 aswell.


Thank you for script, but i want to prefix and suffix on head of player. not on chat
2560-01-26_16.03.15.png
 
@Spirit1998HD that documentation is of Umbaska 2 which isn't updated anymore, if you want to only set the prefix & suffix you can use Skellett:
code_language.skript:
create nametag with id "EnemyTag"
set prefix of nametag with id "SomeID" to "&aHello"
set suffix of nametag with id "SomeID" to "&cEnemy"
add player to nametag with id "EnemyTag"
 
I know that it is for Umbaska 2.0, but Umbaska 3.0 is in development and so i mentioned that this version is for the minecraft version 1.10.
 
Status
Not open for further replies.