Package com.enhancedechest.config
Class PluginConfig
java.lang.Object
com.enhancedechest.config.PluginConfig
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumTLS mode for a remote database connection, mirroring the drivers' ownsslMode/sslmodelevels.static enumHow the/eclistchest list is rendered. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisNameBlocked(String name) True when a proposed custom chest name is disallowed byenderchest.features.rename-blacklist.static booleanisValidSize(int size) True if size is a positive multiple of 9 and at most 54.voidreload(org.bukkit.configuration.file.FileConfiguration config) static intsanitizeSize(int size) Clamps an arbitrary configured size to the nearest valid value (9..54, multiple of 9).
-
Constructor Details
-
PluginConfig
public PluginConfig(org.bukkit.configuration.file.FileConfiguration config)
-
-
Method Details
-
reload
public void reload(org.bukkit.configuration.file.FileConfiguration config) -
isNameBlocked
True when a proposed custom chest name is disallowed byenderchest.features.rename-blacklist. Matching is case-insensitive substring: a name is blocked if its lowercased form contains any configured word. A null/blank name (clearing the name) is always allowed. -
isValidSize
public static boolean isValidSize(int size) True if size is a positive multiple of 9 and at most 54. -
sanitizeSize
public static int sanitizeSize(int size) Clamps an arbitrary configured size to the nearest valid value (9..54, multiple of 9).
-