Having issues with giving a player a named item

  • 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.
Jan 22, 2018
25
0
0
24
Hello there I am having issues with giving a player a named item


Some epic code:

Code:
command /pvp:
    trigger:
        execute console command "ci %player%"
        wait 1 tick
        give iron sword named "&aUnRanked" to slot 5 of player
        give diamond sword named "&2Ranked" to slot 3 of player
        give redstone comparator item named "&6Edit Kit" to slot 8 of player
        give stick named "&bCPS-Tester &7(Right Click)" to slot 0 of player
        give redstone torch on named "&cSpectator" to slot 1 of player
        wait 1 tick
        execute console command "ci %player% glass 1"
        execute console command "ci %player% torch 1"
        execute console command "ci %player% stone 1"
        execute console command "ci %player% cobblestone 1"

command /pv:
    trigger:
        execute console command "ci %player%"
        wait 1 tick
        execute console command "give %player% iron_sword 1 0 {display:{Name:"&aUnRanked"}}"
        execute console command "give %player% torch 1"
        execute console command give %player% diamond_sword 1 0 {display:{Name:"&2Ranked"}}"
        execute console command "give %player% stone 1"
        execute console command "give %player% repeater 1 0 {display:{Name:"&6Edit Kit"}}"
        execute console command "give %player% cobblestone 1"
        execute console command "give %player% stick 1 0 {display:{Name:"&bCPS-Tester"}}"
        execute console command "give %player% glass 1"
        execute console command "give %player% redstone_torch 1 0 {display:{Name:"\"&cSpectator"}}"
        wait 1 tick
        execute console command "ci %player% glass 1"
        execute console command "ci %player% torch 1"
        execute console command "ci %player% stone 1"
        execute console command "ci %player% cobblestone 1"
stop
https://media.discordapp.net/attach.../2019-09-05_21.18.48.png?width=962&height=406 error
 
you have to either give an item to the player, or set the slot of the player, you have somehow made up your own syntax and put the two together.
I highly recommend reading the docs, Skript has very specific syntaxes, you cant just make stuff up.
 
Status
Not open for further replies.