Removal of unused Allowed Player Races configuration.

This commit is contained in:
MobiusDevelopment
2022-09-25 23:09:46 +00:00
parent d3e65bc5ed
commit 6021d7348c
30 changed files with 0 additions and 228 deletions

View File

@@ -1159,8 +1159,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;
@@ -2431,8 +2429,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);

View 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));
}