Dependence:
- Contributors:
- _JustDylan_
- Supported Minecraft Versions:
- 1.13
skript and skript-mirror
Event for tab completion:
on TabCompleteEvent:
(you will need to import org.bukkit.event.server.TabCompleteEvent)
Effects:
set completions to %texts% at %text%:
example:
- set completeions to {completions::*} at tab arg 2
Expressions:
tabbed command
- returns the tabbed command
tab arg[ument]( |-)%*number%
- returns tabbed argument at argument %number%
buffer
- returns the chat buffer
event.getSender()
- returns the sender
example:
Code (Skript):
#example import: java.io.File java.util.Arrays org.bukkit.event.server.TabCompleteEvent expression scripts: get: set {_directory} to new File("plugins/Skript/scripts/") loop ...{_directory}.listFiles(): add loop-value.getName() to {_scripts::*} return {_scripts::*} on TabCompleteEvent: if tabbed command is "/skript" or "/sk": if tab arg 2 isn't set: set completions to "reload", "enable", "disable", "update" and "help" at tab arg 1 else: if tab arg 3 isn't set: if tab arg 1 is "update": set completions to "check", "changes" and "download" at tab arg 2 else if tab arg 1 is "reload": set completions to scripts, "all", "config", "aliases" and "scripts" at tab arg 2 else if tab arg 1 is "enable" or "disable": set completions to "all" and scripts at tab arg 2 else: cancel event
-
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!
Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Script Tab Completer API 1.2.1
this code creates effects and expressions that can be used to create a custom tab completer
Recent Updates
- Small tweaks to skripts expression Feb 1, 2019
- Now compatible with latest updates* 1-2-2019 Feb 1, 2019
- 1.1.0 Compacted The Skript Aug 3, 2018