#Need help with custom give command

1 messages · Page 1 of 1 (latest)

sleek umbra
#

Basically I need to give an item to someone with a specific username, here is my code

command /shiv [<player>]:
    permission: crim.admin
    trigger:
        execute console command "eco take %arg-1% 10"
        set {_shiv} to flint
        enchant {_shiv} with sharpness 1
        give {_shiv} to player

where it says "give {_shiv} to player" I need "player" to be arg-1

#

I have already tried "give {_shiv} to %arg-1%" and it threw and error

sweet tiger
#

ig you need player to be arg-1 why is it not arg-1?

#

also the command execute line is bad

#

use remove 10 from balance of player

#

also you can directly do give flint of sharpness 1 to <put player here>

#

if you want to have it give it to arg-1 if arg-1 exists and to player if it doesn't just do

#

arg-1 ? player

#

.%

#

^ execute this command in #bot-palace

sleek umbra
#

ok wait so

#

lemme try some of this stuff

sweet tiger
#

bet

sleek umbra
#

ok so

sleek umbra
sweet tiger
#

please do not ping me

sleek umbra
#

I need "player" to be arg-1

#

because I need it to be username specific

sleek umbra
sweet tiger
#

put your cursor where "player" is, click, remove it, type "arg-1"

sleek umbra
#

as in: remove 10 from balance of %arg-1%

sweet tiger
#

how come player had no % but when you put arg-1 you put %?

sleek umbra
#

OH WAIT

sweet tiger
#

there you go

#

lol

sleek umbra
#

bro

#

for like the past 40 minutes

#

I've been trying to figure it out

sweet tiger
#

ik bro, you just leveled up

sleek umbra
#

and I never tried rmoving %

sweet tiger
#

%% only go in strings and variables

#

or the chance condition

sleek umbra
#

thanks for your help