forked from MinecraftUtilities/Backend
add check if licence is in the config for maxmind
This commit is contained in:
parent
3faf2d3319
commit
2ad5556041
@ -39,6 +39,10 @@ public class MaxMindService {
|
||||
|
||||
public MaxMindService(@Value("${maxmind.license}") String maxMindLicense) {
|
||||
this.maxMindLicense = maxMindLicense;
|
||||
if (maxMindLicense.isBlank()) {
|
||||
log.error("The MaxMind license key is not set, please set it in the configuration and try again");
|
||||
System.exit(1);
|
||||
}
|
||||
|
||||
File databaseFile = loadDatabase();
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user