added initial setting for the mod mail category in a listener, so it can be configured via command

This commit is contained in:
Sheldan
2020-05-08 18:27:04 +02:00
parent 1c67d96887
commit d1f307837d
3 changed files with 30 additions and 0 deletions

View File

@@ -87,6 +87,15 @@ public class ConfigManagementServiceBean implements ConfigManagementService {
return config;
}
@Override
public AConfig createIfNotExists(Long serverId, String name, Long value) {
AConfig config = loadConfig(serverId, name);
if(config == null) {
return this.createConfig(serverId, name, value);
}
return config;
}
@Override
public AConfig createIfNotExists(Long serverId, String name, Double value) {
AConfig config = loadConfig(serverId, name);