Factions/src/com/massivecraft/factions/util/EconLandRewardTask.java

26 lines
568 B
Java
Raw Normal View History

package com.massivecraft.factions.util;
import com.massivecraft.factions.Conf;
import com.massivecraft.factions.Factions;
import com.massivecraft.factions.P;
public class EconLandRewardTask implements Runnable {
double rate;
public EconLandRewardTask()
{
this.rate = Conf.econLandRewardTaskRunsEveryXMinutes;
}
@Override
public void run()
{
Factions.i.econLandRewardRoutine();
// maybe setting has been changed? if so, restart task at new rate
if (this.rate != Conf.econLandRewardTaskRunsEveryXMinutes)
P.p.startEconLandRewardTask(true);
}
}