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.

Solved Cant change players display name

Discussion in 'Skript' started by engine_real, Dec 12, 2020.

Thread Status:
Not open for further replies.
  1. engine_real

    engine_real Member

    Joined:
    Dec 11, 2020
    Messages:
    3
    Likes Received:
    0
    so im trying to change players display name but the command wont show ingame and when im removing the line "set player's display name to "name" " it shows up (Version 1.16.4)


    command /test:
    trigger:
    if player has permission "admin.user":
    set player's display name to "test"
    else:
    send "no"
     
  2. BadName

    BadName Member

    Joined:
    Oct 23, 2020
    Messages:
    23
    Likes Received:
    0
    please use [ CODE ] (code) [ /CODE ] (without the spaces in the []). It should look like this

    Code (Text):
    1.  hey!
    --- Double Post Merged, Dec 13, 2020, Original Post Date: Dec 13, 2020 ---
    I suggest using arguments.(<text>, <player>, etc) like this

    Code (Text):
    1. command /name <text>:
    2.   permission: admin.user
    3.   trigger:
    4.     if player does not have permission "admin.user":
    5.       send "You do not have the required permission to use this!" to player
    6.     if player has permission "admin.user":
    7.       set tab list name of player to arg 1
    8.       set display name of player to arg 1
    9.       Send "Name set to %arg-1%" to player
    btw when you do (send "") make sure you add (to player) at the end or it will send to every one in the server
     
  3. engine_real

    engine_real Member

    Joined:
    Dec 11, 2020
    Messages:
    3
    Likes Received:
    0
    ty
    ty
     
Thread Status:
Not open for further replies.

Share This Page

Loading...