getCallingPlugin

fun getCallingPlugin(depth: Int = 1): JavaPlugin

Retrieves the JavaPlugin that called this method.

Return

The calling JavaPlugin.

Parameters

depth

The stack trace depth to determine the caller class. Default is 1.

Throws

If the caller class cannot be determined.