canPickUp

@JvmName(name = "canPlayerPickUp")
fun Player.canPickUp(item: PylonItem, sendMessage: Boolean = false): Boolean(source)

Checks whether a player can pick up an item (ie has the associated research, or has permission to bypass research.

Parameters

sendMessage

Whether, if the player cannot pick up the item, a message should be sent to them to notify them of this fact