Removal of unused Allowed Player Races configuration.
This commit is contained in:
@@ -9,5 +9,3 @@ AllowElf = True
|
|||||||
AllowDarkElf = True
|
AllowDarkElf = True
|
||||||
AllowOrc = True
|
AllowOrc = True
|
||||||
AllowDwarf = True
|
AllowDwarf = True
|
||||||
AllowKamael = True
|
|
||||||
AllowErtheia = True
|
|
||||||
|
@@ -1159,8 +1159,6 @@ public class Config
|
|||||||
public static boolean ALLOW_DARKELF;
|
public static boolean ALLOW_DARKELF;
|
||||||
public static boolean ALLOW_ORC;
|
public static boolean ALLOW_ORC;
|
||||||
public static boolean ALLOW_DWARF;
|
public static boolean ALLOW_DWARF;
|
||||||
public static boolean ALLOW_KAMAEL;
|
|
||||||
public static boolean ALLOW_ERTHEIA;
|
|
||||||
public static boolean AUTO_POTIONS_ENABLED;
|
public static boolean AUTO_POTIONS_ENABLED;
|
||||||
public static boolean AUTO_POTIONS_IN_OLYMPIAD;
|
public static boolean AUTO_POTIONS_IN_OLYMPIAD;
|
||||||
public static int AUTO_POTION_MIN_LEVEL;
|
public static int AUTO_POTION_MIN_LEVEL;
|
||||||
@@ -2431,8 +2429,6 @@ public class Config
|
|||||||
ALLOW_DARKELF = allowedPlayerRacesConfig.getBoolean("AllowDarkElf", true);
|
ALLOW_DARKELF = allowedPlayerRacesConfig.getBoolean("AllowDarkElf", true);
|
||||||
ALLOW_ORC = allowedPlayerRacesConfig.getBoolean("AllowOrc", true);
|
ALLOW_ORC = allowedPlayerRacesConfig.getBoolean("AllowOrc", true);
|
||||||
ALLOW_DWARF = allowedPlayerRacesConfig.getBoolean("AllowDwarf", true);
|
ALLOW_DWARF = allowedPlayerRacesConfig.getBoolean("AllowDwarf", true);
|
||||||
ALLOW_KAMAEL = allowedPlayerRacesConfig.getBoolean("AllowKamael", true);
|
|
||||||
ALLOW_ERTHEIA = allowedPlayerRacesConfig.getBoolean("AllowErtheia", true);
|
|
||||||
|
|
||||||
// Load AutoPotions config file (if exists)
|
// Load AutoPotions config file (if exists)
|
||||||
final PropertiesParser autoPotionsConfig = new PropertiesParser(CUSTOM_AUTO_POTIONS_CONFIG_FILE);
|
final PropertiesParser autoPotionsConfig = new PropertiesParser(CUSTOM_AUTO_POTIONS_CONFIG_FILE);
|
||||||
|
@@ -220,24 +220,6 @@ public class CharacterCreate implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case KAMAEL:
|
|
||||||
{
|
|
||||||
if (!Config.ALLOW_KAMAEL)
|
|
||||||
{
|
|
||||||
client.sendPacket(new CharCreateFail(CharCreateFail.REASON_CREATION_FAILED));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case ERTHEIA:
|
|
||||||
{
|
|
||||||
if (!Config.ALLOW_ERTHEIA)
|
|
||||||
{
|
|
||||||
client.sendPacket(new CharCreateFail(CharCreateFail.REASON_CREATION_FAILED));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
newChar = Player.create(template, client.getAccountName(), _name, new PlayerAppearance(_face, _hairColor, _hairStyle, _sex != 0));
|
newChar = Player.create(template, client.getAccountName(), _name, new PlayerAppearance(_face, _hairColor, _hairStyle, _sex != 0));
|
||||||
}
|
}
|
||||||
|
@@ -9,5 +9,3 @@ AllowElf = True
|
|||||||
AllowDarkElf = True
|
AllowDarkElf = True
|
||||||
AllowOrc = True
|
AllowOrc = True
|
||||||
AllowDwarf = True
|
AllowDwarf = True
|
||||||
AllowKamael = True
|
|
||||||
AllowErtheia = True
|
|
||||||
|
@@ -1169,8 +1169,6 @@ public class Config
|
|||||||
public static boolean ALLOW_DARKELF;
|
public static boolean ALLOW_DARKELF;
|
||||||
public static boolean ALLOW_ORC;
|
public static boolean ALLOW_ORC;
|
||||||
public static boolean ALLOW_DWARF;
|
public static boolean ALLOW_DWARF;
|
||||||
public static boolean ALLOW_KAMAEL;
|
|
||||||
public static boolean ALLOW_ERTHEIA;
|
|
||||||
public static boolean AUTO_POTIONS_ENABLED;
|
public static boolean AUTO_POTIONS_ENABLED;
|
||||||
public static boolean AUTO_POTIONS_IN_OLYMPIAD;
|
public static boolean AUTO_POTIONS_IN_OLYMPIAD;
|
||||||
public static int AUTO_POTION_MIN_LEVEL;
|
public static int AUTO_POTION_MIN_LEVEL;
|
||||||
@@ -2460,8 +2458,6 @@ public class Config
|
|||||||
ALLOW_DARKELF = allowedPlayerRacesConfig.getBoolean("AllowDarkElf", true);
|
ALLOW_DARKELF = allowedPlayerRacesConfig.getBoolean("AllowDarkElf", true);
|
||||||
ALLOW_ORC = allowedPlayerRacesConfig.getBoolean("AllowOrc", true);
|
ALLOW_ORC = allowedPlayerRacesConfig.getBoolean("AllowOrc", true);
|
||||||
ALLOW_DWARF = allowedPlayerRacesConfig.getBoolean("AllowDwarf", true);
|
ALLOW_DWARF = allowedPlayerRacesConfig.getBoolean("AllowDwarf", true);
|
||||||
ALLOW_KAMAEL = allowedPlayerRacesConfig.getBoolean("AllowKamael", true);
|
|
||||||
ALLOW_ERTHEIA = allowedPlayerRacesConfig.getBoolean("AllowErtheia", true);
|
|
||||||
|
|
||||||
// Load AutoPotions config file (if exists)
|
// Load AutoPotions config file (if exists)
|
||||||
final PropertiesParser autoPotionsConfig = new PropertiesParser(CUSTOM_AUTO_POTIONS_CONFIG_FILE);
|
final PropertiesParser autoPotionsConfig = new PropertiesParser(CUSTOM_AUTO_POTIONS_CONFIG_FILE);
|
||||||
|
@@ -220,24 +220,6 @@ public class CharacterCreate implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case KAMAEL:
|
|
||||||
{
|
|
||||||
if (!Config.ALLOW_KAMAEL)
|
|
||||||
{
|
|
||||||
client.sendPacket(new CharCreateFail(CharCreateFail.REASON_CREATION_FAILED));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case ERTHEIA:
|
|
||||||
{
|
|
||||||
if (!Config.ALLOW_ERTHEIA)
|
|
||||||
{
|
|
||||||
client.sendPacket(new CharCreateFail(CharCreateFail.REASON_CREATION_FAILED));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
newChar = Player.create(template, client.getAccountName(), _name, new PlayerAppearance(_face, _hairColor, _hairStyle, _sex != 0));
|
newChar = Player.create(template, client.getAccountName(), _name, new PlayerAppearance(_face, _hairColor, _hairStyle, _sex != 0));
|
||||||
}
|
}
|
||||||
|
@@ -9,5 +9,3 @@ AllowElf = True
|
|||||||
AllowDarkElf = True
|
AllowDarkElf = True
|
||||||
AllowOrc = True
|
AllowOrc = True
|
||||||
AllowDwarf = True
|
AllowDwarf = True
|
||||||
AllowKamael = True
|
|
||||||
AllowErtheia = True
|
|
||||||
|
@@ -1172,8 +1172,6 @@ public class Config
|
|||||||
public static boolean ALLOW_DARKELF;
|
public static boolean ALLOW_DARKELF;
|
||||||
public static boolean ALLOW_ORC;
|
public static boolean ALLOW_ORC;
|
||||||
public static boolean ALLOW_DWARF;
|
public static boolean ALLOW_DWARF;
|
||||||
public static boolean ALLOW_KAMAEL;
|
|
||||||
public static boolean ALLOW_ERTHEIA;
|
|
||||||
public static boolean AUTO_POTIONS_ENABLED;
|
public static boolean AUTO_POTIONS_ENABLED;
|
||||||
public static boolean AUTO_POTIONS_IN_OLYMPIAD;
|
public static boolean AUTO_POTIONS_IN_OLYMPIAD;
|
||||||
public static int AUTO_POTION_MIN_LEVEL;
|
public static int AUTO_POTION_MIN_LEVEL;
|
||||||
@@ -2466,8 +2464,6 @@ public class Config
|
|||||||
ALLOW_DARKELF = allowedPlayerRacesConfig.getBoolean("AllowDarkElf", true);
|
ALLOW_DARKELF = allowedPlayerRacesConfig.getBoolean("AllowDarkElf", true);
|
||||||
ALLOW_ORC = allowedPlayerRacesConfig.getBoolean("AllowOrc", true);
|
ALLOW_ORC = allowedPlayerRacesConfig.getBoolean("AllowOrc", true);
|
||||||
ALLOW_DWARF = allowedPlayerRacesConfig.getBoolean("AllowDwarf", true);
|
ALLOW_DWARF = allowedPlayerRacesConfig.getBoolean("AllowDwarf", true);
|
||||||
ALLOW_KAMAEL = allowedPlayerRacesConfig.getBoolean("AllowKamael", true);
|
|
||||||
ALLOW_ERTHEIA = allowedPlayerRacesConfig.getBoolean("AllowErtheia", true);
|
|
||||||
|
|
||||||
// Load AutoPotions config file (if exists)
|
// Load AutoPotions config file (if exists)
|
||||||
final PropertiesParser autoPotionsConfig = new PropertiesParser(CUSTOM_AUTO_POTIONS_CONFIG_FILE);
|
final PropertiesParser autoPotionsConfig = new PropertiesParser(CUSTOM_AUTO_POTIONS_CONFIG_FILE);
|
||||||
|
@@ -220,24 +220,6 @@ public class CharacterCreate implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case KAMAEL:
|
|
||||||
{
|
|
||||||
if (!Config.ALLOW_KAMAEL)
|
|
||||||
{
|
|
||||||
client.sendPacket(new CharCreateFail(CharCreateFail.REASON_CREATION_FAILED));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case ERTHEIA:
|
|
||||||
{
|
|
||||||
if (!Config.ALLOW_ERTHEIA)
|
|
||||||
{
|
|
||||||
client.sendPacket(new CharCreateFail(CharCreateFail.REASON_CREATION_FAILED));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
newChar = Player.create(template, client.getAccountName(), _name, new PlayerAppearance(_face, _hairColor, _hairStyle, _sex != 0));
|
newChar = Player.create(template, client.getAccountName(), _name, new PlayerAppearance(_face, _hairColor, _hairStyle, _sex != 0));
|
||||||
}
|
}
|
||||||
|
@@ -9,5 +9,3 @@ AllowElf = True
|
|||||||
AllowDarkElf = True
|
AllowDarkElf = True
|
||||||
AllowOrc = True
|
AllowOrc = True
|
||||||
AllowDwarf = True
|
AllowDwarf = True
|
||||||
AllowKamael = True
|
|
||||||
AllowErtheia = True
|
|
||||||
|
@@ -1176,8 +1176,6 @@ public class Config
|
|||||||
public static boolean ALLOW_DARKELF;
|
public static boolean ALLOW_DARKELF;
|
||||||
public static boolean ALLOW_ORC;
|
public static boolean ALLOW_ORC;
|
||||||
public static boolean ALLOW_DWARF;
|
public static boolean ALLOW_DWARF;
|
||||||
public static boolean ALLOW_KAMAEL;
|
|
||||||
public static boolean ALLOW_ERTHEIA;
|
|
||||||
public static boolean AUTO_POTIONS_ENABLED;
|
public static boolean AUTO_POTIONS_ENABLED;
|
||||||
public static boolean AUTO_POTIONS_IN_OLYMPIAD;
|
public static boolean AUTO_POTIONS_IN_OLYMPIAD;
|
||||||
public static int AUTO_POTION_MIN_LEVEL;
|
public static int AUTO_POTION_MIN_LEVEL;
|
||||||
@@ -2472,8 +2470,6 @@ public class Config
|
|||||||
ALLOW_DARKELF = allowedPlayerRacesConfig.getBoolean("AllowDarkElf", true);
|
ALLOW_DARKELF = allowedPlayerRacesConfig.getBoolean("AllowDarkElf", true);
|
||||||
ALLOW_ORC = allowedPlayerRacesConfig.getBoolean("AllowOrc", true);
|
ALLOW_ORC = allowedPlayerRacesConfig.getBoolean("AllowOrc", true);
|
||||||
ALLOW_DWARF = allowedPlayerRacesConfig.getBoolean("AllowDwarf", true);
|
ALLOW_DWARF = allowedPlayerRacesConfig.getBoolean("AllowDwarf", true);
|
||||||
ALLOW_KAMAEL = allowedPlayerRacesConfig.getBoolean("AllowKamael", true);
|
|
||||||
ALLOW_ERTHEIA = allowedPlayerRacesConfig.getBoolean("AllowErtheia", true);
|
|
||||||
|
|
||||||
// Load AutoPotions config file (if exists)
|
// Load AutoPotions config file (if exists)
|
||||||
final PropertiesParser autoPotionsConfig = new PropertiesParser(CUSTOM_AUTO_POTIONS_CONFIG_FILE);
|
final PropertiesParser autoPotionsConfig = new PropertiesParser(CUSTOM_AUTO_POTIONS_CONFIG_FILE);
|
||||||
|
@@ -220,24 +220,6 @@ public class CharacterCreate implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case KAMAEL:
|
|
||||||
{
|
|
||||||
if (!Config.ALLOW_KAMAEL)
|
|
||||||
{
|
|
||||||
client.sendPacket(new CharCreateFail(CharCreateFail.REASON_CREATION_FAILED));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case ERTHEIA:
|
|
||||||
{
|
|
||||||
if (!Config.ALLOW_ERTHEIA)
|
|
||||||
{
|
|
||||||
client.sendPacket(new CharCreateFail(CharCreateFail.REASON_CREATION_FAILED));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
newChar = Player.create(template, client.getAccountName(), _name, new PlayerAppearance(_face, _hairColor, _hairStyle, _sex != 0));
|
newChar = Player.create(template, client.getAccountName(), _name, new PlayerAppearance(_face, _hairColor, _hairStyle, _sex != 0));
|
||||||
}
|
}
|
||||||
|
@@ -9,5 +9,3 @@ AllowElf = True
|
|||||||
AllowDarkElf = True
|
AllowDarkElf = True
|
||||||
AllowOrc = True
|
AllowOrc = True
|
||||||
AllowDwarf = True
|
AllowDwarf = True
|
||||||
AllowKamael = True
|
|
||||||
AllowErtheia = True
|
|
||||||
|
@@ -1176,8 +1176,6 @@ public class Config
|
|||||||
public static boolean ALLOW_DARKELF;
|
public static boolean ALLOW_DARKELF;
|
||||||
public static boolean ALLOW_ORC;
|
public static boolean ALLOW_ORC;
|
||||||
public static boolean ALLOW_DWARF;
|
public static boolean ALLOW_DWARF;
|
||||||
public static boolean ALLOW_KAMAEL;
|
|
||||||
public static boolean ALLOW_ERTHEIA;
|
|
||||||
public static boolean AUTO_POTIONS_ENABLED;
|
public static boolean AUTO_POTIONS_ENABLED;
|
||||||
public static boolean AUTO_POTIONS_IN_OLYMPIAD;
|
public static boolean AUTO_POTIONS_IN_OLYMPIAD;
|
||||||
public static int AUTO_POTION_MIN_LEVEL;
|
public static int AUTO_POTION_MIN_LEVEL;
|
||||||
@@ -2472,8 +2470,6 @@ public class Config
|
|||||||
ALLOW_DARKELF = allowedPlayerRacesConfig.getBoolean("AllowDarkElf", true);
|
ALLOW_DARKELF = allowedPlayerRacesConfig.getBoolean("AllowDarkElf", true);
|
||||||
ALLOW_ORC = allowedPlayerRacesConfig.getBoolean("AllowOrc", true);
|
ALLOW_ORC = allowedPlayerRacesConfig.getBoolean("AllowOrc", true);
|
||||||
ALLOW_DWARF = allowedPlayerRacesConfig.getBoolean("AllowDwarf", true);
|
ALLOW_DWARF = allowedPlayerRacesConfig.getBoolean("AllowDwarf", true);
|
||||||
ALLOW_KAMAEL = allowedPlayerRacesConfig.getBoolean("AllowKamael", true);
|
|
||||||
ALLOW_ERTHEIA = allowedPlayerRacesConfig.getBoolean("AllowErtheia", true);
|
|
||||||
|
|
||||||
// Load AutoPotions config file (if exists)
|
// Load AutoPotions config file (if exists)
|
||||||
final PropertiesParser autoPotionsConfig = new PropertiesParser(CUSTOM_AUTO_POTIONS_CONFIG_FILE);
|
final PropertiesParser autoPotionsConfig = new PropertiesParser(CUSTOM_AUTO_POTIONS_CONFIG_FILE);
|
||||||
|
@@ -220,24 +220,6 @@ public class CharacterCreate implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case KAMAEL:
|
|
||||||
{
|
|
||||||
if (!Config.ALLOW_KAMAEL)
|
|
||||||
{
|
|
||||||
client.sendPacket(new CharCreateFail(CharCreateFail.REASON_CREATION_FAILED));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case ERTHEIA:
|
|
||||||
{
|
|
||||||
if (!Config.ALLOW_ERTHEIA)
|
|
||||||
{
|
|
||||||
client.sendPacket(new CharCreateFail(CharCreateFail.REASON_CREATION_FAILED));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
newChar = Player.create(template, client.getAccountName(), _name, new PlayerAppearance(_face, _hairColor, _hairStyle, _sex != 0));
|
newChar = Player.create(template, client.getAccountName(), _name, new PlayerAppearance(_face, _hairColor, _hairStyle, _sex != 0));
|
||||||
}
|
}
|
||||||
|
@@ -9,5 +9,3 @@ AllowElf = True
|
|||||||
AllowDarkElf = True
|
AllowDarkElf = True
|
||||||
AllowOrc = True
|
AllowOrc = True
|
||||||
AllowDwarf = True
|
AllowDwarf = True
|
||||||
AllowKamael = True
|
|
||||||
AllowErtheia = True
|
|
||||||
|
@@ -1176,8 +1176,6 @@ public class Config
|
|||||||
public static boolean ALLOW_DARKELF;
|
public static boolean ALLOW_DARKELF;
|
||||||
public static boolean ALLOW_ORC;
|
public static boolean ALLOW_ORC;
|
||||||
public static boolean ALLOW_DWARF;
|
public static boolean ALLOW_DWARF;
|
||||||
public static boolean ALLOW_KAMAEL;
|
|
||||||
public static boolean ALLOW_ERTHEIA;
|
|
||||||
public static boolean AUTO_POTIONS_ENABLED;
|
public static boolean AUTO_POTIONS_ENABLED;
|
||||||
public static boolean AUTO_POTIONS_IN_OLYMPIAD;
|
public static boolean AUTO_POTIONS_IN_OLYMPIAD;
|
||||||
public static int AUTO_POTION_MIN_LEVEL;
|
public static int AUTO_POTION_MIN_LEVEL;
|
||||||
@@ -2472,8 +2470,6 @@ public class Config
|
|||||||
ALLOW_DARKELF = allowedPlayerRacesConfig.getBoolean("AllowDarkElf", true);
|
ALLOW_DARKELF = allowedPlayerRacesConfig.getBoolean("AllowDarkElf", true);
|
||||||
ALLOW_ORC = allowedPlayerRacesConfig.getBoolean("AllowOrc", true);
|
ALLOW_ORC = allowedPlayerRacesConfig.getBoolean("AllowOrc", true);
|
||||||
ALLOW_DWARF = allowedPlayerRacesConfig.getBoolean("AllowDwarf", true);
|
ALLOW_DWARF = allowedPlayerRacesConfig.getBoolean("AllowDwarf", true);
|
||||||
ALLOW_KAMAEL = allowedPlayerRacesConfig.getBoolean("AllowKamael", true);
|
|
||||||
ALLOW_ERTHEIA = allowedPlayerRacesConfig.getBoolean("AllowErtheia", true);
|
|
||||||
|
|
||||||
// Load AutoPotions config file (if exists)
|
// Load AutoPotions config file (if exists)
|
||||||
final PropertiesParser autoPotionsConfig = new PropertiesParser(CUSTOM_AUTO_POTIONS_CONFIG_FILE);
|
final PropertiesParser autoPotionsConfig = new PropertiesParser(CUSTOM_AUTO_POTIONS_CONFIG_FILE);
|
||||||
|
@@ -220,24 +220,6 @@ public class CharacterCreate implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case KAMAEL:
|
|
||||||
{
|
|
||||||
if (!Config.ALLOW_KAMAEL)
|
|
||||||
{
|
|
||||||
client.sendPacket(new CharCreateFail(CharCreateFail.REASON_CREATION_FAILED));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case ERTHEIA:
|
|
||||||
{
|
|
||||||
if (!Config.ALLOW_ERTHEIA)
|
|
||||||
{
|
|
||||||
client.sendPacket(new CharCreateFail(CharCreateFail.REASON_CREATION_FAILED));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
newChar = Player.create(template, client.getAccountName(), _name, new PlayerAppearance(_face, _hairColor, _hairStyle, _sex != 0));
|
newChar = Player.create(template, client.getAccountName(), _name, new PlayerAppearance(_face, _hairColor, _hairStyle, _sex != 0));
|
||||||
}
|
}
|
||||||
|
@@ -9,5 +9,3 @@ AllowElf = True
|
|||||||
AllowDarkElf = True
|
AllowDarkElf = True
|
||||||
AllowOrc = True
|
AllowOrc = True
|
||||||
AllowDwarf = True
|
AllowDwarf = True
|
||||||
AllowKamael = True
|
|
||||||
AllowErtheia = True
|
|
||||||
|
@@ -1188,8 +1188,6 @@ public class Config
|
|||||||
public static boolean ALLOW_DARKELF;
|
public static boolean ALLOW_DARKELF;
|
||||||
public static boolean ALLOW_ORC;
|
public static boolean ALLOW_ORC;
|
||||||
public static boolean ALLOW_DWARF;
|
public static boolean ALLOW_DWARF;
|
||||||
public static boolean ALLOW_KAMAEL;
|
|
||||||
public static boolean ALLOW_ERTHEIA;
|
|
||||||
public static boolean AUTO_POTIONS_ENABLED;
|
public static boolean AUTO_POTIONS_ENABLED;
|
||||||
public static boolean AUTO_POTIONS_IN_OLYMPIAD;
|
public static boolean AUTO_POTIONS_IN_OLYMPIAD;
|
||||||
public static int AUTO_POTION_MIN_LEVEL;
|
public static int AUTO_POTION_MIN_LEVEL;
|
||||||
@@ -2528,8 +2526,6 @@ public class Config
|
|||||||
ALLOW_DARKELF = allowedPlayerRacesConfig.getBoolean("AllowDarkElf", true);
|
ALLOW_DARKELF = allowedPlayerRacesConfig.getBoolean("AllowDarkElf", true);
|
||||||
ALLOW_ORC = allowedPlayerRacesConfig.getBoolean("AllowOrc", true);
|
ALLOW_ORC = allowedPlayerRacesConfig.getBoolean("AllowOrc", true);
|
||||||
ALLOW_DWARF = allowedPlayerRacesConfig.getBoolean("AllowDwarf", true);
|
ALLOW_DWARF = allowedPlayerRacesConfig.getBoolean("AllowDwarf", true);
|
||||||
ALLOW_KAMAEL = allowedPlayerRacesConfig.getBoolean("AllowKamael", true);
|
|
||||||
ALLOW_ERTHEIA = allowedPlayerRacesConfig.getBoolean("AllowErtheia", true);
|
|
||||||
|
|
||||||
// Load AutoPotions config file (if exists)
|
// Load AutoPotions config file (if exists)
|
||||||
final PropertiesParser autoPotionsConfig = new PropertiesParser(CUSTOM_AUTO_POTIONS_CONFIG_FILE);
|
final PropertiesParser autoPotionsConfig = new PropertiesParser(CUSTOM_AUTO_POTIONS_CONFIG_FILE);
|
||||||
|
@@ -220,24 +220,6 @@ public class CharacterCreate implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case KAMAEL:
|
|
||||||
{
|
|
||||||
if (!Config.ALLOW_KAMAEL)
|
|
||||||
{
|
|
||||||
client.sendPacket(new CharCreateFail(CharCreateFail.REASON_CREATION_FAILED));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case ERTHEIA:
|
|
||||||
{
|
|
||||||
if (!Config.ALLOW_ERTHEIA)
|
|
||||||
{
|
|
||||||
client.sendPacket(new CharCreateFail(CharCreateFail.REASON_CREATION_FAILED));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
newChar = Player.create(template, client.getAccountName(), _name, new PlayerAppearance(_face, _hairColor, _hairStyle, _sex != 0));
|
newChar = Player.create(template, client.getAccountName(), _name, new PlayerAppearance(_face, _hairColor, _hairStyle, _sex != 0));
|
||||||
}
|
}
|
||||||
|
@@ -9,5 +9,3 @@ AllowElf = True
|
|||||||
AllowDarkElf = True
|
AllowDarkElf = True
|
||||||
AllowOrc = True
|
AllowOrc = True
|
||||||
AllowDwarf = True
|
AllowDwarf = True
|
||||||
AllowKamael = True
|
|
||||||
AllowErtheia = True
|
|
||||||
|
@@ -1181,8 +1181,6 @@ public class Config
|
|||||||
public static boolean ALLOW_DARKELF;
|
public static boolean ALLOW_DARKELF;
|
||||||
public static boolean ALLOW_ORC;
|
public static boolean ALLOW_ORC;
|
||||||
public static boolean ALLOW_DWARF;
|
public static boolean ALLOW_DWARF;
|
||||||
public static boolean ALLOW_KAMAEL;
|
|
||||||
public static boolean ALLOW_ERTHEIA;
|
|
||||||
public static boolean AUTO_POTIONS_ENABLED;
|
public static boolean AUTO_POTIONS_ENABLED;
|
||||||
public static boolean AUTO_POTIONS_IN_OLYMPIAD;
|
public static boolean AUTO_POTIONS_IN_OLYMPIAD;
|
||||||
public static int AUTO_POTION_MIN_LEVEL;
|
public static int AUTO_POTION_MIN_LEVEL;
|
||||||
@@ -2481,8 +2479,6 @@ public class Config
|
|||||||
ALLOW_DARKELF = allowedPlayerRacesConfig.getBoolean("AllowDarkElf", true);
|
ALLOW_DARKELF = allowedPlayerRacesConfig.getBoolean("AllowDarkElf", true);
|
||||||
ALLOW_ORC = allowedPlayerRacesConfig.getBoolean("AllowOrc", true);
|
ALLOW_ORC = allowedPlayerRacesConfig.getBoolean("AllowOrc", true);
|
||||||
ALLOW_DWARF = allowedPlayerRacesConfig.getBoolean("AllowDwarf", true);
|
ALLOW_DWARF = allowedPlayerRacesConfig.getBoolean("AllowDwarf", true);
|
||||||
ALLOW_KAMAEL = allowedPlayerRacesConfig.getBoolean("AllowKamael", true);
|
|
||||||
ALLOW_ERTHEIA = allowedPlayerRacesConfig.getBoolean("AllowErtheia", true);
|
|
||||||
|
|
||||||
// Load AutoPotions config file (if exists)
|
// Load AutoPotions config file (if exists)
|
||||||
final PropertiesParser autoPotionsConfig = new PropertiesParser(CUSTOM_AUTO_POTIONS_CONFIG_FILE);
|
final PropertiesParser autoPotionsConfig = new PropertiesParser(CUSTOM_AUTO_POTIONS_CONFIG_FILE);
|
||||||
|
@@ -220,24 +220,6 @@ public class CharacterCreate implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case KAMAEL:
|
|
||||||
{
|
|
||||||
if (!Config.ALLOW_KAMAEL)
|
|
||||||
{
|
|
||||||
client.sendPacket(new CharCreateFail(CharCreateFail.REASON_CREATION_FAILED));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case ERTHEIA:
|
|
||||||
{
|
|
||||||
if (!Config.ALLOW_ERTHEIA)
|
|
||||||
{
|
|
||||||
client.sendPacket(new CharCreateFail(CharCreateFail.REASON_CREATION_FAILED));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
newChar = Player.create(template, client.getAccountName(), _name, new PlayerAppearance(_face, _hairColor, _hairStyle, _sex != 0));
|
newChar = Player.create(template, client.getAccountName(), _name, new PlayerAppearance(_face, _hairColor, _hairStyle, _sex != 0));
|
||||||
}
|
}
|
||||||
|
@@ -10,4 +10,3 @@ AllowDarkElf = True
|
|||||||
AllowOrc = True
|
AllowOrc = True
|
||||||
AllowDwarf = True
|
AllowDwarf = True
|
||||||
AllowKamael = True
|
AllowKamael = True
|
||||||
AllowErtheia = True
|
|
||||||
|
@@ -1188,7 +1188,6 @@ public class Config
|
|||||||
public static boolean ALLOW_ORC;
|
public static boolean ALLOW_ORC;
|
||||||
public static boolean ALLOW_DWARF;
|
public static boolean ALLOW_DWARF;
|
||||||
public static boolean ALLOW_KAMAEL;
|
public static boolean ALLOW_KAMAEL;
|
||||||
public static boolean ALLOW_ERTHEIA;
|
|
||||||
public static boolean AUTO_POTIONS_ENABLED;
|
public static boolean AUTO_POTIONS_ENABLED;
|
||||||
public static boolean AUTO_POTIONS_IN_OLYMPIAD;
|
public static boolean AUTO_POTIONS_IN_OLYMPIAD;
|
||||||
public static int AUTO_POTION_MIN_LEVEL;
|
public static int AUTO_POTION_MIN_LEVEL;
|
||||||
@@ -2527,7 +2526,6 @@ public class Config
|
|||||||
ALLOW_ORC = allowedPlayerRacesConfig.getBoolean("AllowOrc", true);
|
ALLOW_ORC = allowedPlayerRacesConfig.getBoolean("AllowOrc", true);
|
||||||
ALLOW_DWARF = allowedPlayerRacesConfig.getBoolean("AllowDwarf", true);
|
ALLOW_DWARF = allowedPlayerRacesConfig.getBoolean("AllowDwarf", true);
|
||||||
ALLOW_KAMAEL = allowedPlayerRacesConfig.getBoolean("AllowKamael", true);
|
ALLOW_KAMAEL = allowedPlayerRacesConfig.getBoolean("AllowKamael", true);
|
||||||
ALLOW_ERTHEIA = allowedPlayerRacesConfig.getBoolean("AllowErtheia", true);
|
|
||||||
|
|
||||||
// Load AutoPotions config file (if exists)
|
// Load AutoPotions config file (if exists)
|
||||||
final PropertiesParser autoPotionsConfig = new PropertiesParser(CUSTOM_AUTO_POTIONS_CONFIG_FILE);
|
final PropertiesParser autoPotionsConfig = new PropertiesParser(CUSTOM_AUTO_POTIONS_CONFIG_FILE);
|
||||||
|
@@ -229,15 +229,6 @@ public class CharacterCreate implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case ERTHEIA:
|
|
||||||
{
|
|
||||||
if (!Config.ALLOW_ERTHEIA)
|
|
||||||
{
|
|
||||||
client.sendPacket(new CharCreateFail(CharCreateFail.REASON_CREATION_FAILED));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
newChar = Player.create(template, client.getAccountName(), _name, new PlayerAppearance(_face, _hairColor, _hairStyle, _sex != 0));
|
newChar = Player.create(template, client.getAccountName(), _name, new PlayerAppearance(_face, _hairColor, _hairStyle, _sex != 0));
|
||||||
}
|
}
|
||||||
|
@@ -9,5 +9,3 @@ AllowElf = True
|
|||||||
AllowDarkElf = True
|
AllowDarkElf = True
|
||||||
AllowOrc = True
|
AllowOrc = True
|
||||||
AllowDwarf = True
|
AllowDwarf = True
|
||||||
AllowKamael = True
|
|
||||||
AllowErtheia = True
|
|
||||||
|
@@ -1188,8 +1188,6 @@ public class Config
|
|||||||
public static boolean ALLOW_DARKELF;
|
public static boolean ALLOW_DARKELF;
|
||||||
public static boolean ALLOW_ORC;
|
public static boolean ALLOW_ORC;
|
||||||
public static boolean ALLOW_DWARF;
|
public static boolean ALLOW_DWARF;
|
||||||
public static boolean ALLOW_KAMAEL;
|
|
||||||
public static boolean ALLOW_ERTHEIA;
|
|
||||||
public static boolean AUTO_POTIONS_ENABLED;
|
public static boolean AUTO_POTIONS_ENABLED;
|
||||||
public static boolean AUTO_POTIONS_IN_OLYMPIAD;
|
public static boolean AUTO_POTIONS_IN_OLYMPIAD;
|
||||||
public static int AUTO_POTION_MIN_LEVEL;
|
public static int AUTO_POTION_MIN_LEVEL;
|
||||||
@@ -2486,8 +2484,6 @@ public class Config
|
|||||||
ALLOW_DARKELF = allowedPlayerRacesConfig.getBoolean("AllowDarkElf", true);
|
ALLOW_DARKELF = allowedPlayerRacesConfig.getBoolean("AllowDarkElf", true);
|
||||||
ALLOW_ORC = allowedPlayerRacesConfig.getBoolean("AllowOrc", true);
|
ALLOW_ORC = allowedPlayerRacesConfig.getBoolean("AllowOrc", true);
|
||||||
ALLOW_DWARF = allowedPlayerRacesConfig.getBoolean("AllowDwarf", true);
|
ALLOW_DWARF = allowedPlayerRacesConfig.getBoolean("AllowDwarf", true);
|
||||||
ALLOW_KAMAEL = allowedPlayerRacesConfig.getBoolean("AllowKamael", true);
|
|
||||||
ALLOW_ERTHEIA = allowedPlayerRacesConfig.getBoolean("AllowErtheia", true);
|
|
||||||
|
|
||||||
// Load AutoPotions config file (if exists)
|
// Load AutoPotions config file (if exists)
|
||||||
final PropertiesParser autoPotionsConfig = new PropertiesParser(CUSTOM_AUTO_POTIONS_CONFIG_FILE);
|
final PropertiesParser autoPotionsConfig = new PropertiesParser(CUSTOM_AUTO_POTIONS_CONFIG_FILE);
|
||||||
|
@@ -220,24 +220,6 @@ public class CharacterCreate implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case KAMAEL:
|
|
||||||
{
|
|
||||||
if (!Config.ALLOW_KAMAEL)
|
|
||||||
{
|
|
||||||
client.sendPacket(new CharCreateFail(CharCreateFail.REASON_CREATION_FAILED));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case ERTHEIA:
|
|
||||||
{
|
|
||||||
if (!Config.ALLOW_ERTHEIA)
|
|
||||||
{
|
|
||||||
client.sendPacket(new CharCreateFail(CharCreateFail.REASON_CREATION_FAILED));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
newChar = Player.create(template, client.getAccountName(), _name, new PlayerAppearance(_face, _hairColor, _hairStyle, _sex != 0));
|
newChar = Player.create(template, client.getAccountName(), _name, new PlayerAppearance(_face, _hairColor, _hairStyle, _sex != 0));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user