whatarewelookingfor = "port";
if ((temp = config.getProperty(whatarewelookingfor)) != null){
port = Integer.parseInt(temp);
} else {
throw new MissingConfigOptionException(String.format("Option %s missing.", whatarewelookingfor));
}
whatarewelookingfor = "np_server";
if ((temp = config.getProperty(whatarewelookingfor)) != null){
useServer = Boolean.parseBoolean(temp);
} else {
throw new MissingConfigOptionException(String.format("Option %s missing.", whatarewelookingfor));
}
whatarewelookingfor = "p_server_npc";
if ((temp = config.getProperty(whatarewelookingfor)) != null){
acceptNP = Boolean.parseBoolean(temp);
} else {
throw new MissingConfigOptionException(String.format("Option %s missing.", whatarewelookingfor));
}
whatarewelookingfor = "maxClients";
if ((temp = config.getProperty(whatarewelookingfor)) != null){
maxAllowedConnectedClients = Integer.parseInt(temp);
} else {
throw new MissingConfigOptionException(String.format("Option %s missing.", whatarewelookingfor));
}
whatarewelookingfor = "persistent_server";
if ((temp = config.getProperty(whatarewelookingfor)) != null){
usePServer = Boolean.parseBoolean(temp);
} else {
throw new MissingConfigOptionException(String.format("Option %s missing.", whatarewelookingfor));
}
whatarewelookingfor = "persistent_port";
if ((temp = config.getProperty(whatarewelookingfor)) != null) {
persistentPort = Integer.parseInt(temp);
} else {
throw new MissingConfigOptionException(String.format("Option %s missing.", whatarewelookingfor));
}
whatarewelookingfor = "maxPClients";
if ((temp = config.getProperty(whatarewelookingfor)) != null){
maxAllowedConnectedPC = Integer.parseInt(temp);
} else {
throw new MissingConfigOptionException(String.format("Option %s missing.", whatarewelookingfor));
}
whatarewelookingfor = "solingertimeout";
if((temp = config.getProperty(whatarewelookingfor)) != null){
solingertimeout = Integer.parseInt(temp);
} else {
throw new MissingConfigOptionException(String.format("Option %s missing.", whatarewelookingfor));
}
}