1. James Crasta
  2. MondoChest

Commits

James Crasta  committed 429679f

Clean up initialization of group limits to let it be emptied on config re-load

  • Participants
  • Parent commits b371e25
  • Branches default

Comments (0)

Files changed (1)

File src/us/crast/mondochest/MondoConfig.java

View file
 	public static String FALLBACK_ROLE = MondoConstants.ROLE_NONE;
     public static boolean ACL_ENABLED = true;
     private static Limits GLOBAL_LIMITS = null;
-    private static List<Limits> groupLimits = new ArrayList<Limits>();
+    private static List<Limits> groupLimits = null;
 
 	private static List<String> decodeErrors = null;
 
 	}
 	
 	private static void configureGroupLimits(ConfigurationSection s) {
+	    groupLimits = new ArrayList<Limits>();
         if (s == null) return;
         for (Map.Entry<String, Object> e : s.getValues(false).entrySet()) {
             if (s.isConfigurationSection(e.getKey())) {