Says none instead of the %Arg-2%

  • 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 community!

    Now, what are you waiting for? Join the community now!

skitlles

Member
Dec 25, 2025
1
0
1
So i have this scripted smp where i want to fix the death messages but i cant make it work can somebody please help and explain why this does not work?



on join:
set {_nick} to player's display name
set {_nicked} to false

command /nick <text> <text>:
trigger:
set {_nick} to arg-2
set {_nicked} to true
execute console command "/haonick:nick %arg-1% %arg-2%"

on death:
if victim is a player:
if attacker is a player:
if {_nicked.%victim%} is false:
broadcast "&e%victim% has left the game"
else:
broadcast "&e%{_nick.%victim%}% has left the game"