getAllViewers

fun <T : AbstractKtInventory> getAllViewers(clazz: KClass<T>): Map<Player, T>

Gets all online players currently viewing an inventory of the specified type.

Return

Map of players to their open inventories of type T

Since

2.0.0

Parameters

T

The type of inventory extending AbstractKtInventory

clazz

The KClass of the inventory type


inline fun <T : AbstractKtInventory> getAllViewers(): Map<Player, T>

Gets all online players currently viewing an inventory of the specified type.

Return

Map of players to their open inventories of type T

Since

2.0.0

Parameters

T

The type of inventory extending AbstractKtInventory