canCraft

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


@JvmName(name = "canPlayerCraft")
fun Player.canCraft(schema: RebarItemSchema, sendMessage: Boolean = false, respectBypass: Boolean = true): 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