activeChar.sendMessage("Changed enchantment of " + player.getName() + "'s " + itemInstance.getName() + " from " + curEnchant + " to " + ench + ".");
player.sendMessage("Admin has changed the enchantment of your " + itemInstance.getName() + " from " + curEnchant + " to " + ench + ".");
if(activeChar != player && ench >= (itemInstance.getItem().getType2() == L2Item.TYPE2_WEAPON ? 6 : 5))
{
player.altUseSkill(SkillTable.getInstance().getInfo(21006, 1), player);
player.broadcastPacket(new SystemMessage(SystemMessage.C1_HAS_SUCCESSFULY_ENCHANTED_A__S2_S3).addName(player).addNumber(ench).addItemName(itemInstance.getItemId()));
}
if(Config.ProtectEnchantGMEnable && ench > Config.ProtectEnchantGMMax)
{
mOption.banAcc(activeChar, "ProtectEnchantGM");
mOption.banAcc(player, "ProtectEnchantGM");