Here's my skript:
(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--
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.
[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!
[doublepost=1584681991,1584672290][/doublepost]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.
Code:
command /joinmessage [<text>]:
permission: joinmessage.set
trigger:
set {joinmessage} to arg-1
on join:
if {joinmessage} is set:
set join message to "%player's display name% %{essentials nickname}% %name of player% %{joinmessage}%"
else:
set join message to "%player% has joined the server"
on quit:
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--
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.
[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!
[doublepost=1584681991,1584672290][/doublepost]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.