Removal of unused Allowed Player Races configuration.
This commit is contained in:
@@ -1188,8 +1188,6 @@ public class Config
|
||||
public static boolean ALLOW_DARKELF;
|
||||
public static boolean ALLOW_ORC;
|
||||
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_IN_OLYMPIAD;
|
||||
public static int AUTO_POTION_MIN_LEVEL;
|
||||
@@ -2486,8 +2484,6 @@ public class Config
|
||||
ALLOW_DARKELF = allowedPlayerRacesConfig.getBoolean("AllowDarkElf", true);
|
||||
ALLOW_ORC = allowedPlayerRacesConfig.getBoolean("AllowOrc", 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)
|
||||
final PropertiesParser autoPotionsConfig = new PropertiesParser(CUSTOM_AUTO_POTIONS_CONFIG_FILE);
|
||||
|
@@ -220,24 +220,6 @@ public class CharacterCreate implements IClientIncomingPacket
|
||||
}
|
||||
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));
|
||||
}
|
||||
|
Reference in New Issue
Block a user