26 lines
566 B
Java
26 lines
566 B
Java
|
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.autoLeaveRoutineRunsEveryXMinutes;
|
||
|
}
|
||
|
|
||
|
@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);
|
||
|
}
|
||
|
|
||
|
}
|