getNamespacedData

abstract fun getNamespacedData(): Pair<JavaPlugin, String>

Owning plugin and the command's literal name (its second element).