getPrimaryResource

abstract fun getPrimaryResource(player: Player): Resource?(source)

Returns the resource the player spends on abilities by default, like mana, or null if there is no such resource.

Server owners choose the plugin for it with the resource-provider option in Mimic config. If the option isn't set, or the plugin isn't installed, Mimic asks plugins one by one, from the highest priority, and returns the first primary resource it gets. Vanilla resources, like minecraft:food, are never primary.