Solved Cant change players display name

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

engine_real

Member
Dec 11, 2020
3
0
1
19
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"
 
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"

please use [ CODE ] (code) [ /CODE ] (without the spaces in the []). It should look like this

Code:
 hey!
[doublepost=1607834512,1607830987][/doublepost]
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"

I suggest using arguments.(<text>, <player>, etc) like this

Code:
command /name <text>:
  permission: admin.user
  trigger:
    if player does not have permission "admin.user":
      send "You do not have the required permission to use this!" to player
    if player has permission "admin.user":
      set tab list name of player to arg 1
      set display name of player to arg 1
      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
 
ty
please use [ CODE ] (code) [ /CODE ] (without the spaces in the []). It should look like this

Code:
 hey!
[doublepost=1607834512,1607830987][/doublepost]

I suggest using arguments.(<text>, <player>, etc) like this

Code:
command /name <text>:
  permission: admin.user
  trigger:
    if player does not have permission "admin.user":
      send "You do not have the required permission to use this!" to player
    if player has permission "admin.user":
      set tab list name of player to arg 1
      set display name of player to arg 1
      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
ty
 
Status
Not open for further replies.