Solved Problem with giving player enchanted items

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

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Riknesh

Active Member
Jun 9, 2017
76
2
8
Malaysia
Im trying to debug this command...so I made it shorter.Whenever I reload the skript,it says "('diamond armor of thorn 4' and 'unbreaking 5') can't be added to a player because the former is neither an item type, an inventory nor an experience point (test.sk, line 744: give diamond armor of thorn 4 and unbreaking 5 to arg-1')"

command /test [<player>]:
trigger:
if arg-1 is set:
give diamond armor of thorn 4 and unbreaking 5 to arg-1
stop

How can I fix this?
 
Thorns with an "s". Reloaded just fine for me:emoji_slight_smile:
[doublepost=1515741532,1515741488][/doublepost]Also you don't need to add the stop at the end of a command like that, there's nothing else for it to execute
 
  • Like
Reactions: Riknesh
Thorns with an "s". Reloaded just fine for me:emoji_slight_smile:
[doublepost=1515741532,1515741488][/doublepost]Also you don't need to add the stop at the end of a command like that, there's nothing else for it to execute

lol..its working now
thanks anyway :emoji_slight_smile: ,and actually the code is way longer,thats y i put that "stop"..i just made this simple command to figure out wat was wrong
 
  • Like
Reactions: Wynnevir
lol..its working now
thanks anyway :emoji_slight_smile: ,and actually the code is way longer,thats y i put that "stop"..i just made this simple command to figure out wat was wrong
Glad to hear! Go ahead and mark this post as solved if you will~
 
Status
Not open for further replies.