Tutorial by: axilirate


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 ":


Did you find axilirate's tutorial helpful?


You must be logged in to comment