need help with a skript

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

    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!

oly

Member
Apr 17, 2023
1
0
1
I need help with a tablist, i try loads none of them show up in tab. Not even plugins of them.
 
alright you need to be much much more specific than that if you want help on here. but i will try my best and fill in the blanks myself with guesses.

Pleases note tab complicators can not be defined before the command

Firstly I personally use SkBee If you do as well your tab list code should look like this


Code:
command /cc [<string>]:
    description: clears chat for the user
    aliases: /cls
    trigger:
        if arg-1 is not set:
            loop 50 times:
                send "" to player
        if arg-1 is "all":
            loop 100 times:
                send "" to all players

on tab complete of "/cc" or "/cls":
    set tab completions for position 1 to "all"

If you are not using SkBee you will need to be very careful with this


Code:
on tab completer for "/cc":
set {_completers::*} to "all", "random1",  and "survival"
loop {_completers::*}:
add loop-value to completion

Here is the post i got the code form. a quick search would have been 100 times faster
Post
 
alright you need to be much much more specific than that if you want help on here. but i will try my best and fill in the blanks myself with guesses.

Pleases note tab complicators can not be defined before the command

Firstly I personally use SkBee If you do as well your tab list code should look like this


Code:
command /cc [<string>]:
    description: clears chat for the user
    aliases: /cls
    trigger:
        if arg-1 is not set:
            loop 50 times:
                send "" to player
        if arg-1 is "all":
            loop 100 times:
                send "" to all players

on tab complete of "/cc" or "/cls":
    set tab completions for position 1 to "all"

If you are not using SkBee you will need to be very careful with this


Code:
on tab completer for "/cc":
set {_completers::*} to "all", "random1",  and "survival"
loop {_completers::*}:
add loop-value to completion

Here is the post i got the code form. a quick search would have been 100 times faster
Post
the code at the end is unindented.
Also he meant the player list tab, not the command tab complete, also in the command you should use else ifs
 
the code at the end is unindented.
Also he meant the player list tab, not the command tab complete, also in the command you should use else ifs

Hi
1) Yes it is. but my sources are listed and it's indented on that so i am sure it's not hard to figure out.
2) I had a feeling but at least maybe someone else can get some help from it
3) It's a very small snippet form a larger bit of code. Take a look at this and the performance implications of each. Please not this is not skript exactly. so take it with a grain of salt but most this work like this Load Runner