capabilitiesFor

fun capabilitiesFor(plugin: PaperMcDespawnedItems, player: Player): List<String>

The capabilities player has, as flags a client mod can use to grey out controls it must not offer. Sent with the handshake so the mod never has to guess — and so a player is never shown a button that the server will refuse.