mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-03-27 22:31:45 +00:00
added initial setting for the mod mail category in a listener, so it can be configured via command
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user