Factions/src/com/massivecraft/factions/task/EconRewardTask.java

43 lines
1014 B
Java
Raw Normal View History

package com.massivecraft.factions.task;
2013-04-22 09:37:53 +02:00
import com.massivecraft.factions.entity.FactionColl;
import com.massivecraft.factions.entity.FactionColls;
import com.massivecraft.factions.entity.MConf;
import com.massivecraft.mcore.ModuloRepeatTask;
2013-04-23 12:14:36 +02:00
public class EconRewardTask extends ModuloRepeatTask
{
// -------------------------------------------- //
// INSTANCE & CONSTRUCT
// -------------------------------------------- //
2013-04-23 12:14:36 +02:00
private static EconRewardTask i = new EconRewardTask();
public static EconRewardTask get() { return i; }
// -------------------------------------------- //
// OVERRIDE: MODULO REPEAT TASK
// -------------------------------------------- //
@Override
public long getDelayMillis()
{
return MConf.get().taskEconMillis;
}
@Override
public void setDelayMillis(long delayMillis)
{
MConf.get().taskEconMillis = delayMillis;
}
@Override
public void invoke()
{
for (FactionColl coll : FactionColls.get().getColls())
{
coll.econLandRewardRoutine();
}
}
}