can u make a code for vips too? to not get dc/remove the weapon if he have an overenchanted item. Because theres a phx code that can give u the enchant level that u want (for example 19) if server max is +19 and i want for vips only to wear these weapons. Max enchant rate=16 and for vips +19. if i change the code to
if (item.isEquipable())
{
+ if (!activeChar.isGM() && item.getEnchantLevel(19) > Config.ENCHANT_MAX_WEAPON || item.getEnchantLevel(8) > Config.ENCHANT_MAX_ARMOR || item.getEnchantLevel(8) > Config.ENCHANT_MAX_JEWELRY)
+ {
+ activeChar.sendMessage("You have been kicked for using an item overenchanted!");
+ activeChar.closeNetConnection();
+ return;
+ }
Then normal players that can use phx will get a +19 weapon without dc.