PHP: EconomyAPI::getInstance()->reduceMoney($player, $money); $type = filter_var($text[1], FILTER_SANITIZE_NUMBER_INT); $level = filter_var($text[3], FILTER_SANITIZE_NUMBER_INT); $enchantment = Enchantment::getEnchantment($type); $enchInstance = new EnchantmentInstance($enchantment, $level); $item = $player->getInventory()->getItemInHand(); $item -> addEnchantment($enchInstance); $player->sendMessage("§aYou have successfully bought $type $level for $$money"); Im trying to sell enchants using signs, it filters the text fine and thats shown in the message sent at the end but for whatever reason its just not putting the enchant im selling on the item in the players hand. Im getting no errors when i run this code at all and im on the latest version of pocketmine.. any help or ideas will be appreciated, ive been stuck on this one for a while now