2012-11-28 06:51:37 +01:00
|
|
|
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()
|
|
|
|
{
|
2012-11-30 21:02:43 +01:00
|
|
|
this.rate = Conf.econLandRewardTaskRunsEveryXMinutes;
|
2012-11-28 06:51:37 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@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);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|