Class PluginConfig

java.lang.Object
com.enhancedechest.config.PluginConfig

public final class PluginConfig extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    TLS mode for a remote database connection, mirroring the drivers' own sslMode/sslmode levels.
    static enum 
    How the /eclist chest list is rendered.
  • Constructor Summary

    Constructors
    Constructor
    Description
    PluginConfig(org.bukkit.configuration.file.FileConfiguration config)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    True when a proposed custom chest name is disallowed by enderchest.features.rename-blacklist.
    static boolean
    isValidSize(int size)
    True if size is a positive multiple of 9 and at most 54.
    void
    reload(org.bukkit.configuration.file.FileConfiguration config)
     
    static int
    sanitizeSize(int size)
    Clamps an arbitrary configured size to the nearest valid value (9..54, multiple of 9).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PluginConfig

      public PluginConfig(org.bukkit.configuration.file.FileConfiguration config)
  • Method Details

    • reload

      public void reload(org.bukkit.configuration.file.FileConfiguration config)
    • isNameBlocked

      public boolean isNameBlocked(String name)
      True when a proposed custom chest name is disallowed by enderchest.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).