added command to set config double to a certain value, added command to scale the exp (separately)

renamed multiplier property, to be more descriptive
This commit is contained in:
Sheldan
2020-04-12 23:46:36 +02:00
parent edb270e887
commit 5edb2e4cc8
11 changed files with 130 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
package dev.sheldan.abstracto.core.exception;
public class ConfigurationException extends Exception {
public class ConfigurationException extends AbstractoRunTimeException {
public ConfigurationException(String message) {
super(message);
}

View File

@@ -4,5 +4,6 @@ public interface ConfigService {
Double getDoubleValue(String name, Long serverId);
Double getDoubleValue(String name, Long serverId, Double defaultValue);
void createDoubleValueIfNotExist(String name, Long serverId, Double value);
void setDoubleValue(String name, Long serverId, Double value);
}

View File

@@ -10,4 +10,6 @@ public interface ConfigManagementService {
AConfig createIfNotExists(Long serverId, String name, String value);
AConfig createIfNotExists(Long serverId, String name, Double value);
AConfig loadConfig(Long serverId, String name);
boolean configExists(Long serverId, String name);
void setDoubleValue(Long serverId, String name, Double value);
}