use of com.github.sirblobman.combatlogx.api.object.TimerType in project CombatLogX by SirBlobman.
the class CombatManager method getMaxTimerSeconds.
@Override
public int getMaxTimerSeconds(Player player) {
ConfigurationManager configurationManager = this.plugin.getConfigurationManager();
YamlConfiguration configuration = configurationManager.get("config.yml");
String timerTypeString = configuration.getString("timer.type");
TimerType timerType = TimerType.parse(timerTypeString);
return (timerType == TimerType.PERMISSION ? getPermissionTimerSeconds(player) : getGlobalTimerSeconds());
}
Aggregations