Example:
import:
org.bukkit.event.server.TabCompleteEvent
java.util.ArrayList
java.util.List
on TabCompleteEvent:
if event.getBuffer() is "/command ":
set {_list} to new ArrayList()
{_list}.add("completion 1")
{_list}.add("completion 2")
event.setCompletions({_list})
note that there must be a space after the command
if event.getBuffer() is "/command ":
You must be logged in to comment
Sept. 30, 2025, 7:33 p.m. - corkyrock ¶
is there any way to also put a second tab completion?