getCommandSource

abstract fun getCommandSource(source: Any): McCommandSource

Gets a command source by server-specific instance.

The source parameter represents the server-specific command source instance:

  • For Velocity com.velocitypowered.api.command.CommandSource

  • For BungeeCord // todo

Return

A McCommandSource instance corresponding to the provided command source instance.

Parameters

source

The server-specific command source instance.