Alright.. so I'm making custom enchants and everything, and now I'm at the last challenge, Applying them. so my problem is that I'm trying to check if the item that "wants" to receive the enchant, can. I've tried to u getPrimaryFlag or somethings == Enchantment::SLOT_PICKAXE , but that doesnt work since PrimaryFlag returns an integer. Any idea on how I could do that?
https://github.com/pmmp/PocketMine-...cketmine/item/enchantment/Enchantment.php#L90 Enchantment::SLOT_PICKAXE is an integer, too. (1024 to be exact)