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

41 lines
936 B
Java
Raw Normal View History

package com.massivecraft.factions.task;
import com.massivecraft.factions.entity.MFlag;
import com.massivecraft.factions.entity.MPerm;
import com.massivecraft.massivecore.ModuloRepeatTask;
import com.massivecraft.massivecore.util.TimeUnit;
public class TaskFlagPermCreate extends ModuloRepeatTask
{
// -------------------------------------------- //
// INSTANCE & CONSTRUCT
// -------------------------------------------- //
private static TaskFlagPermCreate i = new TaskFlagPermCreate();
public static TaskFlagPermCreate get() { return i; }
// -------------------------------------------- //
// OVERRIDE: MODULO REPEAT TASK
// -------------------------------------------- //
@Override
public long getDelayMillis()
{
return TimeUnit.MILLIS_PER_SECOND * 3;
}
@Override
public void setDelayMillis(long delayMillis)
{
}
@Override
public void invoke(long now)
{
MPerm.getAll();
MFlag.getAll();
}
}