#How to add tab priority

1 messages · Page 1 of 1 (latest)

thin cove
#

Honestly, for this type of thing I recommend using TAB, it is much more complete and if you need to use skript variables you can use skript-placeholder

drifting dune
thin cove
#

https://skripthub.net/docs/?id=4369

eg.

on papi request with prefix "prefix":
    if identifier is "identifier":
        set result to {blah}

# this placeholder will be used like this: %prefix_identifier%
# {blah} is your variable
drifting dune
thin cove
#

mmm of course, you must add that syntax in your code, that is, in the skript that is in your skript folder

drifting dune
thin cove
#

It would be a matter of setting TAB.

drifting dune
thin cove
#

but since you would be registering that "Placeholder", you could use it like any other placeholder.

thin cove
drifting dune
#

what is the identifier

#

for

drifting dune
thin cove
#

https://skripthub.net/docs/?id=4369
the prefix is ​​like when you use some essentials placeholder, something like "essentials", and the identifier is the one you are trying to get, something like "essentials_name" for example. (I don't know if essentials have that placeholder, it's just an example)

#

it's like this, player is the prefix and biome is the identifier

thin cove
#

your welcome

drifting dune
thin cove
#

You shouldn't have any problems, unless you're using 1.20.

drifting dune
#

ill downgrade though

thin cove
#

first try to use it, if you get any error let me know

#

shouldn't be a problem

drifting dune
thin cove
#

send /sk info

#

I don't know if it works with 1.20, but if you are using the beta version of Skript try version 2.6.4

drifting dune
#

works now

drifting dune
#

where in tab plugin config do i add the varible

#

thing

thin cove
#

what variable is it, what do you want to show

#

in groups.yml

drifting dune
thin cove
#

yw

drifting dune
thin cove
#

ignore the underscore, you can put it in tabprefix, customtabname or tabsuffix

drifting dune
thin cove
#

and no, as you put it it will not work, remember to use the prefix and identifier that you registered

#

send the code you used to register it

drifting dune
#

the skript?

#
on papi request with prefix "levels":
    if identifier is "levels":
        set result to "%{xp::%uuid of player%}%"
drifting dune
#

im guessing

thin cove
#

eg.

# In my skript
on papi request with prefix "custom":
    if identifier is "name":
        set result to "%player%"

# In groups.yml %custom_name%
drifting dune
#

Like is my skript correct

thin cove
#

mmm yes, your skript is fine, and to use it in TAB you must join the prefix and the identifier like this: %prefix_identifier%

drifting dune
thin cove
#

no, it should work when you reload your script, you don't need to install any placeholderapi expansion

drifting dune
#

that should work after reloading the skript

#

right?

#

bc its not-

thin cove
#

you have placeholderapi?

#

Also, is your variable set?

drifting dune
drifting dune
#

how do u set it

drifting dune
#

@thin cove ?