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

jomjonejame

Member
Jan 26, 2017
54
1
8
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"
 
If so, this is what i would so:
code_language.skript:
on chat:
    cancel event
    broadcast "<prefix here> %message%"
 
Then do
code_language.skript:
set player tab name to "&cEnemy %player%" try that
 
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: 400
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
 
As seen in the documentation you can try that:

code_language.skript:
set name tag of player to "&cPrefix " and " &cSuffix"

If this only works for the chat i don't now the answer right now.
 
@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.
 
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.
it supports 1.10 but it's buggy af and that's why no one recommends it.
 
Nice to know. Thx for that information. I doesn't know before :emoji_slight_smile:.
[doublepost=1485802038,1485434061][/doublepost]Did your question was been solved with the answer of @Snow-Pyon ?
 
  • Like
Reactions: Snow-Pyon
Status
Not open for further replies.