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

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Display name

Discussion in 'Skript' started by Time4Games, Jul 31, 2020.

  1. Time4Games

    Time4Games Well-Known Member

    Joined:
    Jul 25, 2020
    Messages:
    60
    Likes Received:
    1
    this code doesnt work. help pls (i use 2 spaces and not a tab)

    Code (Text):
    1. command /test [<text>]:
    2.   trigger:
    3.     set arg-1 to display name of player
     
  2. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    608
    Likes Received:
    24
    Syntax is not well formulated. The correct way would be something like this:
    Code (Skript):
    1. command /test [<text>]:
    2.   trigger:
    3.     arg 1 is set:
    4.       set player's displayname to arg 1
     
  3. Time4Games

    Time4Games Well-Known Member

    Joined:
    Jul 25, 2020
    Messages:
    60
    Likes Received:
    1
    ok thank you
    and thanks for the quick reply
    --- Double Post Merged, Jul 31, 2020, Original Post Date: Jul 31, 2020 ---
    It doesnt work
    it send that there are no errors but it doesnt change the display name
     
  4. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    608
    Likes Received:
    24
    Do you have a skript that modifies the chat?
     
  5. Time4Games

    Time4Games Well-Known Member

    Joined:
    Jul 25, 2020
    Messages:
    60
    Likes Received:
    1
    oh you meant the chat display name.
    i meant the name above the player
     
  6. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    608
    Likes Received:
    24
    Ohh... do you mean to 'nametag'?
     
  7. Time4Games

    Time4Games Well-Known Member

    Joined:
    Jul 25, 2020
    Messages:
    60
    Likes Received:
    1
    yea
     
  8. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    608
    Likes Received:
    24
    Well... i think that this need a addon, but this should work:
    Code (Skript):
    1. command /test <player> <string>:
    2.     trigger:
    3.         set nametag of arg 1 to "%arg 2%"
     
  9. Time4Games

    Time4Games Well-Known Member

    Joined:
    Jul 25, 2020
    Messages:
    60
    Likes Received:
    1
    i tried it and i do need an addon.
    do you know what addon do i need?
     
  10. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    608
    Likes Received:
    24
    If I remember correctly, it was SkRayFall.
     
  11. Time4Games

    Time4Games Well-Known Member

    Joined:
    Jul 25, 2020
    Messages:
    60
    Likes Received:
    1
    okay thanks, i will try it tomorrow its late here
    --- Double Post Merged, Aug 1, 2020 at 1:37 PM, Original Post Date: Jul 31, 2020 ---
    It doesn't work
    any idea why?
     
  12. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    608
    Likes Received:
    24
    What skript's version are you using?
     
  13. Time4Games

    Time4Games Well-Known Member

    Joined:
    Jul 25, 2020
    Messages:
    60
    Likes Received:
    1
    Git paper 129 mc: 1.16.1
    2.5 alpha6 mh
     
Loading...