TCheckpoint

This commit is contained in:
tyuXX 2025-06-29 14:43:19 +03:00
parent c5b686aeb5
commit 9ae9bf64e7
54 changed files with 252 additions and 118 deletions

View file

@ -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;
}

View file

@ -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;