Bungee

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

The arguments of the command, mapped from Pattern to VitalCommand.Arg.

Link copied to clipboard

Functions

Link copied to clipboard

Internal function used to execute this command as the given sender and args. Any mapped arg handlers that matches the given command execution will be called using executeArgExceptionHandlerMethod.

Link copied to clipboard
open override fun getAllPlayerNames(): List<String?>

Internal function used to get the names of all currently connected players.

Link copied to clipboard
open fun <T : Annotation> getInfo(type: Class<T>): T
Link copied to clipboard

Internal function used to get all arg exception handler functions annotated with ArgExceptionHandler and map them to their appropriate Arg and specified Annotation. This function returns a Map of all mapped arg exception handlers and will later be used during command execution to correctly call arg exception handlers when an exception occurs during command execution.

Link copied to clipboard

Internal function used to get the internal arg handler context for all functions annotated with ArgHandler. This arg handler context will later be used during command execution to call the annotated arg handler function with the correct parameters.

Link copied to clipboard

Internal function used to Get all functions annotated with ArgHandler and map them to their given Arg.name as a Pattern. These mapped args are later used during command execution to find out which arg was actually executed by a command sender.

Link copied to clipboard
open override fun hasPermission(commandSender: BungeeCommandSender, permission: String): Boolean

Internal function used to check if the given commandSender has the given permission.

Link copied to clipboard
open override fun isPlayer(commandSender: BungeeCommandSender): Boolean

Internal function used to check if the given commandSender is a player.

Link copied to clipboard

Internal function used to provide automatic tab-completions for the given command execution. Additionally, implementers can add their own tab-completions by overriding the onCommandTabComplete lifecycle function.