canCraft

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

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

Parameters

sendMessage

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