Help with packets

  • 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.

PuchiGFX

Member
Jan 26, 2017
246
5
18
How can i manage the tab completions with "play_client_tab_complete" packet?
I mean cancel all completions and add a custom list of players to it
 
code_language.skript:
options:
    FakeTab: Player1, Player2, Player3

on tab complete:
    set {_TabCompletions::*} to {@FakeTab::*} split at ","
    delete completions
    loop {_TabCompletions::*}:
        add loop-value to completions

It requires skQuery and you don't need packets
 
code_language.skript:
options:
    FakeTab: Player1, Player2, Player3

on tab complete:
    set {_TabCompletions::*} to {@FakeTab::*} split at ","
    delete completions
    loop {_TabCompletions::*}:
        add loop-value to completions

It requires skQuery and you don't need packets
That event requires mundosk and don't work for me
 
No, if you use "on tab competer" or "on tab completion", it will call anytime you try to [TAB] in chat, but you can make it run only for a specific command, as noted in skQuery's syntax
 
Then use MundoSK's:
code_language.skript:
on tab complete:
    set {_TabCompletions::*} to split {@FakeTab} at ", "
    loop {_TabCompletions::*}
        add loop-value to completions
 
code_language.skript:
options:
    FakeTab: Player1, Player2, Player3

on tab complete:
    set {_TabCompletions::*} to {@FakeTab::*} split at ","
    delete completions
    loop {_TabCompletions::*}:
        add loop-value to completions

It requires skQuery and you don't need packets
it requires MundoSK, not skQuery. And this event only works on 1.9 and above.
 
Status
Not open for further replies.