SuggestionBuilder

class SuggestionBuilder<T>(plugin: JavaPlugin, command: Command<T>, sender: CommandSender, world: World?, server: Server, message: String, depth: Int, typedArgs: List<Any?>)

A builder that creates a list of suggestions.

Constructors

SuggestionBuilder
Link copied to clipboard
fun <T> SuggestionBuilder(plugin: JavaPlugin, command: Command<T>, sender: CommandSender, world: World?, server: Server, message: String, depth: Int, typedArgs: List<Any?>)

Functions

suggest
Link copied to clipboard
fun suggest(content: String, tooltip: String? = null): SuggestionBuilder<T>

Suggest content.

suggestAll
Link copied to clipboard
fun suggestAll(contents: List<String>): SuggestionBuilder<T>

Suggest multiple content.

Properties

args
Link copied to clipboard
val args: List<String>

Command arguments. The remaining arguments except the beginning of the command are assigned. These are all returned as strings. If you need parsed values, see typedArgs.

command
Link copied to clipboard
val command: Command<T>

Executed command.

message
Link copied to clipboard
val message: String

Command input message.

player
Link copied to clipboard
val player: Player?

The player who is about to execute the command.

plugin
Link copied to clipboard
val plugin: JavaPlugin

Your plugin.

sender
Link copied to clipboard
val sender: CommandSender

Executed command sender. (It doesn't matter if you are a player or not.)

server
Link copied to clipboard
val server: Server

The server on which the plugin was run

typedArgs
Link copied to clipboard
val typedArgs: List<Any?>
world
Link copied to clipboard
val world: World?

The world where the command was executed