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!

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

Nickname

Discussion in 'Requests' started by TullyMastully, Aug 21, 2017.

  1. TullyMastully

    TullyMastully Active Member

    Joined:
    Aug 9, 2017
    Messages:
    38
    Likes Received:
    0
    Category: Skript, Nickname.

    Suggested name: NickName

    What I want:
    I want and need a Nickname skript, By doing /nick it will change your name in tab, name in chat, display name etc.
    If you're already nicked, Do /nick to unnick yourself.
    Ideas for commands: /nick

    Ideas for permissions: The permission for it will be : tullycore.nickname

    When I'd like it by: A reasonable time
     
  2. ShaneBee

    Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,168
    Likes Received:
    172
    Code (Skript):
    1. set player's displayname to "hey"
     
  3. ShaneBee

    Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,168
    Likes Received:
    172
    It's not really helping me, and not exactly what I requested, but thanks, I guess
     
  4. ShaneBee

    Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,168
    Likes Received:
    172
    Code (Skript):
    1. commnad /nick [<text>]:
    2.     trigger:
    3.         if arg-1 is set:
    4.             set player's displayname to "%player's prefix% %arg-1%"
    5.            
    6.            
    7.            
    8. on chat:
    9.     set message format to "%player's displayname% %message%"
     
  5. ShaneBee

    Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,168
    Likes Received:
    172
    This covers everything but the overhead nametag, Since I don't know you version or what plugins/addons you have that's a bit harder to guess, but this set's a players tablist name and display name for chat. If you want to format them just add color codes before the percents in the parenthesis. If you want the player to be able to decide color, change arg 1 to colored arg 1
    Code (Skript):
    1. command /testnick [<text>]:
    2.     permission: nick.use
    3.     trigger:
    4.         if {is-nicked.%player%} is not set:
    5.             set {is-nicked.%player%} to false
    6.         if arg 1 is not set:
    7.             if {is-nicked.%player%} is true:
    8.                 set player's display name to "%player's name%"
    9.                 set the player's tablist name to "%player's name%"
    10.                 send "Your nick was reset!"
    11.                 set {is-nicked.%player%} to false
    12.             else:
    13.                 send "You are not nicked. Use /nick <text>"
    14.             stop
    15.         else:
    16.             set player's display name to "%arg 1%"
    17.             set the player's tablist name to "%arg 1%"
    18.             send "Changed your nickname to ""%arg 1%"""
    19.             set {is-nicked.%player%} to true
     
Loading...