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.

Essentials displayname expression not working? / Displayname expressions?

Discussion in 'Skript' started by tuila, Mar 20, 2020.

  1. tuila

    tuila Member

    Joined:
    Mar 20, 2020
    Messages:
    2
    Likes Received:
    0
    Here's my skript:

    Code (Text):
    1. command /joinmessage [<text>]:
    2.   permission: joinmessage.set
    3.   trigger:
    4.     set {joinmessage} to arg-1
    5.  
    6. on join:
    7.   if {joinmessage} is set:
    8.     set join message to "%player's display name% %{essentials nickname}% %name of player% %{joinmessage}%"
    9.   else:
    10.     set join message to "%player% has joined the server"
    11.    
    12. on quit:
    13.     set leave message to "&f[&c-&f] &e%player's displayname% &ehas left the server"
    (I did 3 different versions of displayname expressions as a test). Basically, what I want is a custom join/leave message that players are able to modify ingame. However, when they join, I want their displayname to be visible, not their IGN. For example, take this screenshot--

    upload_2020-3-19_19-37-36.png

    Tuila is my Minecraft username. When I try to run %{essentials nickname}% / %{essentials_nickname}%, it doesn't work and replaces it with <none>. All other plugins display my nickname properly (in tab and in chat), I'm unsure why it won't let me use the displayname expression in this instance.

    upload_2020-3-19_19-42-58.png

    [ShadowClan] is the prefix, Hawkstrike is the nickname. I'm also using Ersatz.

    Any help is appreciated, but please keep in mind I want "Hawkstrike" (my nickname) to be visible in the join message, not "tuila" (my IGN/username). Thanks in advance!
    --- Double Post Merged, Mar 20, 2020, Original Post Date: Mar 20, 2020 ---
    So it seems the problem stems from the server not acknowledging the Essentials nickname until a message is posted in the chat. The plugins I'm using are Coreprotect, Luckperms, Worldedit, Skript (obviously), Placeholderapi, Nametagedit, Worldguard, Protocollib, Libsdisguises, Vault, Serverlistplus, Essentials, Holographicdisplays, Advancedabilities, Citizens, skRayFall, Quests, Essentialsprotect, Essentialsantibuild, Essentialsspawn, Disease, Towny, Townychat and Deluxechat, if any of these affect this.
     

    Attached Files:

    • Useful Useful x 1
  2. Potato

    Potato Active Member

    Joined:
    Feb 24, 2020
    Messages:
    33
    Likes Received:
    0
    Try %essentials nickname% instead of %{essentials nickname}%
    --- Double Post Merged, Mar 20, 2020 ---
    %{essentials nickname}% is not an expression thats why you have to remove the {}
     
  3. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    436
    Likes Received:
    14
    As the post above said, %{Essentials.nickname}% isnt a Skript expression. If you want learn something about skript, look this page https://skripthub.net/docs/
     
  4. tuila

    tuila Member

    Joined:
    Mar 20, 2020
    Messages:
    2
    Likes Received:
    0
    It seems like the problem is either the chat plugin or Essentials. No matter what I use ("displayname of player", "%essentials nickname%", etc) it doesn't work. I'm using DeluxeChat, anyone know if there's any way to work around this? I have an idea, but I wanted to see if anyone else had any thoughts. Thanks in advance!
     
Loading...