Tab Complete (Event) — SkBee

Addon: SkBee · Category: Event · Since: 1.7.0

Syntax

[on] [skbee] tab complete [(of|for) %-strings%]

Description

Called when a player attempts to tab complete the arguments of a command.

NOTE: Tab complete event is only called for the ARGUMENTS of a command, NOT the command itself.

Event Values

  • event-commandsender
  • event-player
  • event-string

Examples

on tab complete of "/mycommand":
	set tab completions for position 1 to "one", "two" and "three"
	set tab completions for position 2 to 1, 2 and 3
	set tab completions for position 3 to all players
	set tab completions for position 4 to (indexes of {blocks::*})

on tab complete:
	if event-string contains "/ver":
		clear tab completions

View source