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

26 lines
592 B
Java
Raw Normal View History

package com.massivecraft.factions.util;
import com.massivecraft.factions.Conf;
2013-04-09 12:58:39 +02:00
import com.massivecraft.factions.FactionColl;
2013-04-09 13:00:09 +02:00
import com.massivecraft.factions.Factions;
public class EconLandRewardTask implements Runnable {
double rate;
public EconLandRewardTask()
{
this.rate = Conf.econLandRewardTaskRunsEveryXMinutes;
}
@Override
public void run()
{
2013-04-09 12:58:39 +02:00
FactionColl.i.econLandRewardRoutine();
// maybe setting has been changed? if so, restart task at new rate
if (this.rate != Conf.econLandRewardTaskRunsEveryXMinutes)
Factions.get().startEconLandRewardTask(true);
}
}