Solved Tab Complete with argument

  • Thread starter Deleted member 11521
  • Start date
  • 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.
D

Deleted member 11521

Hey,

I wanted to set an custom tab complete for my /ban command to show the reasons. Therefore I wrote following code:
Code:
on tab completer for "/ban":
    if argument at 1 is set:
        add "Hacking" to suggestions
        add "Alt" to suggestions
        add "Teaming" to suggestions
        add "Trolling" to suggestions
        add "Targetting" to suggestions
        add "Spawntrapping" to suggestions
        add "Camping" to suggestions
        add "Statsboosting" to suggestions
        add "Ban-Umgehung" to suggestions

It should only show these reasons if the first argument is set but the reasons are also shown, when the first argument is not set.
There are no parsing errors.

Informations:

Skript Version: 2.2 (fixes V8b)
MC Version: 1.8.8
Addons: Skript, MundoSK, Skellett, SkQuery, skRayFall, skript-mirror, skript-ping-0.2, SkStuffe, TuSKe

Searched in docs? y
Searched in forums? y

Im sorry if my english is bad <3
~Paul
[doublepost=1592217978,1592150815][/doublepost]⬆
[doublepost=1592237559][/doublepost]⬆
[doublepost=1592314791][/doublepost]⬆
 
Status
Not open for further replies.