TCheckpoint
This commit is contained in:
parent
c5b686aeb5
commit
9ae9bf64e7
54 changed files with 252 additions and 118 deletions
|
|
@ -21,7 +21,8 @@ public class ActiveConfig {
|
|||
GrimmsServer.logger.warning("Config value for " + key.getKey() + " is not of type " + ignoredType.getSimpleName() + ". Message: " + e.getMessage());
|
||||
try {
|
||||
return ignoredType.getDeclaredConstructor().newInstance();
|
||||
} catch (InvocationTargetException | NoSuchMethodException | IllegalAccessException | InstantiationException ex) {
|
||||
} catch (InvocationTargetException | NoSuchMethodException | IllegalAccessException |
|
||||
InstantiationException ex) {
|
||||
GrimmsServer.logger.warning("Failed to instantiate default value for " + key.getKey() + ". Message: " + ex.getMessage());
|
||||
return null;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
package org.gsdistance.grimmsServer.Config;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public enum ConfigKey {
|
||||
MODULE_JOBS("module_Jobs", true),
|
||||
|
|
@ -20,6 +19,7 @@ public enum ConfigKey {
|
|||
JOIN_MESSAGE("joinMessage", true),
|
||||
MODULE_DIMENSIONS("module_Dimensions", true),
|
||||
DISABLED_DIMENSIONS("disabledDimensions", new ArrayList<String>()),
|
||||
BANNED_WORDS("bannedWords", new ArrayList<String>()),
|
||||
FORCE_DISABLE_BC("forceDisableBroadcasts", false);
|
||||
|
||||
private final String key;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue