Add some settings management and also parse the time format.

This allows for: 30seconds, 10minutes, 3hours, or 2days
This commit is contained in:
graywolf336
2013-12-24 12:28:40 -06:00
parent 4a45229bc5
commit 0d79569c74
3 changed files with 63 additions and 4 deletions

View File

@ -0,0 +1,21 @@
package com.graywolf336.jail.enums;
public enum Settings {
DEBUG("system.debug"),
UPDATENOTIFICATIONS("system.updateNotifications"),
JAILDEFAULTTIME("jailing.jail.defaultTime");
private String path;
private Settings(String path) {
this.path = path;
}
/**
* Gets the path this setting is in config.
* @return The path where this setting resides in the config.
*/
public String getPath() {
return this.path;
}
}