mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-03-24 21:53:22 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user