*:/item enchant [$enchant=''] [$level=''] = >>>
@level = $level
'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 <enchant> <level>'))
}
if(pinfo()[6] == '0:-1') {
die(colorize('&8[&9&oAltraux&8] &c&oYou must be holding an item!'))
}
die(colorize('&8[&9&oAltraux&8] &c&oThat is not a valid enchant name!'))
}
if(@enchant == 'protection' &&
$level == '1' &&
phas_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!'))
}
<<<
Language: commandhelper
Posted by Anonymous at 01 Apr 2013, 03:13:42 UTC