*:/item enchant [$enchant=''] [$level=''] = >>> @enchant = to_lower($enchant) @level = $level @array = array( 'Protection', 'FireProtection', 'BlastProtection', 'ProjectileProtection', 'FeatherFalling', 'AquaAffinity', 'Respiration', 'Sharpness', 'Smite', 'BaneOfArthropods', 'Knockback', 'FireAspect', 'Looting', 'Efficiency', 'SilkTouch', 'Unbreaking', 'Fortune', 'Power', 'Punch', 'Flame', 'Infinity',) if($level == '' || $enchantment == '') { die(colorize('&8[&9&oAltraux&8] &c&o/item enchant ')) } if(pinfo()[6] == '0:-1') { die(colorize('&8[&9&oAltraux&8] &c&oYou must be holding an item!')) } if(!array_contains_ic(@array, @enchant)) { die(colorize('&8[&9&oAltraux&8] &c&oThat is not a valid enchant name!')) } if(@enchant == 'protection' && $level == '1' && phas_item(player(), 122) >= 4) { try(enchant_inv(pinfo()[15], 0, @level), die(colorize('&8[&9&oRelic&8] &c&oThat enchant doesn\'t belong on that!'))) ptake_item(player(), 122, 4) die(colorize('&8[&9&oAltraux&8] &9&oSuccess! &c'.to_upper(@enchant).' &9&olevel &c'.@level)) } else { die(colorize('&8[&9&oAltraux&8] &c&oYou do not have enough relics!')) } <<<