I am creating a /give command, and I am trying to make skript message the player with the name of the item that was given, but it keeps saying "<none>" Here is my code:
You can see in the line of code "&7You gave &c%{_a}% %name of {_i}% &7to &cALL&7." it has "name of {_i}" which is parsed as an item. I want it, for instance, if I give a player a diamond sword, I want it to display "Diamond Sword", which is the name of that item.
code_language.skript:
command /invgive [<text>] [<text>] [<text>] [<text>]:
executable by: players
trigger:
I LEFT THIS PART OF THE CODE OUT
if argument 2 is set:
if argument 3 is set:
if argument 1 is "all":
set {_i} to argument 2 parsed as item
set {_a} to "%argument 3%" parsed as a number
if {_i} is an item:
if {_a} is a number:
message "&cInventory &8» &7You gave &c%{_a}% %name of {_i}% &7to &cALL&7."
message "&cInventory &8» &7You received &c%{_a}% [B]%name of {_i}% [/B] &7from &c%player%&7." to all players
loop {_a} times:
give {_i} to all players
You can see in the line of code "&7You gave &c%{_a}% %name of {_i}% &7to &cALL&7." it has "name of {_i}" which is parsed as an item. I want it, for instance, if I give a player a diamond sword, I want it to display "Diamond Sword", which is the name of that item.