me.fritz.seattlesummer
Class SeattleSummerConfigHandler

java.lang.Object
  extended by me.fritz.seattlesummer.SeattleSummerConfigHandler

public class SeattleSummerConfigHandler
extends java.lang.Object

Manages loading or creating the configuration file for SeattleSummer

Author:
Fritz

Constructor Summary
SeattleSummerConfigHandler(SeattleSummer instance)
          Loads configuration, creates default config file if none exists.
 
Method Summary
 java.lang.Boolean isManaged(java.lang.String worldName)
          Checks if a world is excluded by config file
 long rainDuration()
          Retrieve maxDuration defined in config file
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SeattleSummerConfigHandler

public SeattleSummerConfigHandler(SeattleSummer instance)
Loads configuration, creates default config file if none exists.

Parameters:
target - The world which the timer is started for.
Method Detail

rainDuration

public long rainDuration()
Retrieve maxDuration defined in config file

Returns:
maxDuration setting converted to milliseconds

isManaged

public java.lang.Boolean isManaged(java.lang.String worldName)
Checks if a world is excluded by config file

Parameters:
worldName - the name of the world being checked
Returns:
false if world is in exclusion list