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 Script

Discussion in 'Requests' started by Kolsenstein, Jul 1, 2021.

  1. Kolsenstein

    Kolsenstein Member

    Joined:
    Jul 1, 2021
    Messages:
    4
    Likes Received:
    0
    Category: Request

    Suggested name: RPname

    Spigot/Skript Version: latest

    What I want:
    Hello random user, Im very very new to skript and know basically nothing. Im struggling to find a script to change the nickname of the player above their head and in chat and in Tablist. Yes I do have Tablisknu installed but it seems that all scripts I find are outdated. Can someone please help me or send me a script. I want this to happen when I use the command /rpname [<text>]

    Ideas for commands: /rpname [<text>]

    Ideas for permissions: rp.name

    When I'd like it by: Any time really, im in no rush
     
    #1 Kolsenstein, Jul 1, 2021
    Last edited: Jul 1, 2021
  2. Frog

    Frog Member

    Joined:
    Apr 30, 2021
    Messages:
    16
    Likes Received:
    7
    Code (Text):
    1. # Made by Frog#2803
    2. command rpname [<text>]:
    3.   permission: rp.name
    4.   trigger:
    5.     if arg-1 isn't set:
    6.       send "&8[&aRolePlay&8]&r Please chose a &anickname!" to player
    7.     if arg-1 is set:
    8.       if arg-1 contains " ":
    9.         send "&8[&aRolePlay&8]&r Your &anickname&r can't contain spaces!" to player
    10.         stop
    11.       if length of arg-1 is above 16:
    12.         send "&8[&aRolePlay&8]&r Your &anickname&r can't contain more than 16 characters!" to player
    13.         stop
    14.       else:
    15.         set display name of player to arg-1
    16.         set tab list name of player to arg-1
    17.         send "&8[&aRolePlay&8]&r Succesfully set your &anickname&r to &a%arg-1%!" to player
    18.  
    19. command rpreset:
    20.   permission: rp.name
    21.   trigger:
    22.     reset display name of player
    23.     reset tab list name of player
    24.     send "&8[&aRolePlay&8]&r Succesfully reset your &anickname!" to player
    does this work?
     

Share This Page

Loading...