Skip to content

Tab completer Bug #14

Description

@ChifuyuKR

Describe the bug
A clear and concise description of what the bug is.
Can't using a tab completer
Error (IG) : A tab completer cannot be assigned before the command is defined (blabla.sk line x : on tab competer for "/command":)

To Reproduce
Steps to reproduce the behavior if there are any.

  1. Create a command
  2. make "a on tab completer for "/command":"
  3. /sk reload

Information:

  • Skript version: 2.2-dev32d (1.8) / 2.3.6 (1.13.2)
  • Server software: PaperSpigot
  • Server version: 1.8/1.13.2/1.14....

Additional context
Add any other context about the bug here.

We use a global skript made with monitoring files
The command is defined.

Exemple for a command with tab completer doesn't work :

command /srv <number>:
	trigger:
		if arg is not set:
			send "&cVeuillez choisir le serveur de votre choix !"
			wait 40 ticks
		if arg is set:
			if this server is not "srv%arg%":
				test(player,"srv%arg%")

on tab completer for "/srv":
	add "1" to completions
	add "2" to completions
	add "3" to completions
	add "4" to completions
	add "5" to completions

(For teleport to others servers of my bungeecord)

Activity

  1. TheLimeGlass commented on Jul 12, 2019

    @TheLimeGlass
    Member

    Since Skript commands aren't technically commands during runtime it's hard for SkQuery to get the command, but I think it finds a way somehow, maybe only after a restart? Either way it's hard to grab a Skript command and it may need a recode to fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions