Reward faction members with money every day for every plot they control divided among all the players in the faction

This commit is contained in:
ÆtherSurfer
2012-11-28 00:51:37 -05:00
parent 9c7ed3bf38
commit ca219a1fb2
4 changed files with 67 additions and 0 deletions

View File

@ -0,0 +1,25 @@
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);
}
}