Adjustments for max enchant.
Contributed by rocknowx.
This commit is contained in:
@ -138,9 +138,9 @@ public class AdminEnchant implements IAdminCommandHandler
|
||||
int ench = Integer.parseInt(command.substring(12));
|
||||
|
||||
// check value
|
||||
if ((ench < 0) || (ench > 65535))
|
||||
if ((ench < 0) || (ench > 127))
|
||||
{
|
||||
activeChar.sendMessage("You must set the enchant level to be between 0-65535.");
|
||||
activeChar.sendMessage("You must set the enchant level to be between 0-127.");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -175,9 +175,9 @@ public class PlayerHandler implements ITelnetHandler
|
||||
itemType = 0;
|
||||
}
|
||||
|
||||
if (enchant > 65535)
|
||||
if (enchant > 127)
|
||||
{
|
||||
enchant = 65535;
|
||||
enchant = 127;
|
||||
}
|
||||
else if (enchant < 0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user