CommandHelper

open class CommandHelper(source)

Utility class providing helper functions for command processing. Contains methods for team management, suggestions, and color handling.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
val COLOR_SUGGESTIONS: SuggestionProvider<CommandSourceStack>
Suggestion provider for chat color auto-completion.
Link copied to clipboard
val TEAM_SUGGESTIONS: SuggestionProvider<CommandSourceStack>
Suggestion provider for team name auto-completion.

Functions

Link copied to clipboard
open fun findTeamByName(name: String): Team
Finds a team by its name.
Link copied to clipboard
open fun getChatFormatting(context: CommandContext<CommandSourceStack>, argumentName: String): ChatFormatting
Retrieves ChatFormatting from command context.
Link copied to clipboard
Gets a list of all team names.