#tab completion

1 messages · Page 1 of 1 (latest)

tawny sparrow
#

command /rune <text>:
aliases: /giverune
usage: /rune <Speed|Strength>
description: Gives the specified rune
executable by: players
permission: rune.give
permission message: &cYou do not have permission to use this command!
trigger:
set {_rune} to arg-1

    if {_rune} is "speed":
        give guster pottery sherd named "&b&lSpeed Rune" to player
        send "&aYou have received the &bSpeed Rune&a!" to player
    else if {_rune} is "strength":
        give blade pottery sherd named "&4&lStrength Rune" to player
        send "&aYou have received the &4Strength Rune&a!" to player
    else:
        send "&cUnknown rune type. Use &bSpeed &cor &4Strength&c." to player

tab completions for /rune:
argument 1:
suggest "Speed"
suggest "Strength"

#

it just doesnt work

last wasp
#

what doesn't work

rustic dune
tawny sparrow
#

i am using skbee

#

and it still doesnt work

#

its saying cant understadn effect tab completion for /rune

#

@last wasp

#

pls help

last wasp
rustic dune
tawny sparrow
#

it finally works thanks yall!

tawny sparrow
#

HOW DO I FIX THIS ISTG

#

@last wasp sorry for pinging again but i tried to fix it in vs code and stuff and it just does not work

last wasp
#

indentation error

#

expected 1 tab, but found 4 spaces

tawny sparrow
#

yes ik

#

i already did it with tab

#

and it still does not work

last wasp
#

fix all of them then

tawny sparrow
#

its only one error

#

and thats the only one

last wasp
#

somewhere there's incorrect indentation

last dove
#

It tells you what the issue is. It’s likely cause you copy pasted some code (and its indentation)

#

Also fun fact, instead of set {_rune} to arg-1, you can use command /rune <rune:string>: and then the arg is automatically converted to a local variable

eager bridge
#

i'm not sure that ever is actually objectively useful but

#

that's epic

last dove
#

I like it cause 10 lines later ill usually forget what arg-n is

eager bridge
#

fair

rustic dune