canEquip

public static boolean canEquip(Player player, ItemStack itemStack)

Checks if a player can equip an item based on their skill level.

Return

true if the player can equip, false if restricted

Parameters

player

The player trying to equip the item

itemStack

The item being equipped