Only on task server

This commit is contained in:
BuildTools 2015-12-15 13:57:58 +01:00 committed by Olof Larsson
parent 3b5dae4d80
commit f11937efda
2 changed files with 4 additions and 0 deletions

View File

@ -5,6 +5,7 @@ import org.bukkit.plugin.Plugin;
import com.massivecraft.factions.Factions;
import com.massivecraft.factions.entity.FactionColl;
import com.massivecraft.factions.entity.MConf;
import com.massivecraft.massivecore.MassiveCore;
import com.massivecraft.massivecore.ModuloRepeatTask;
import com.massivecraft.massivecore.util.TimeUnit;
@ -42,6 +43,7 @@ public class TaskEconLandReward extends ModuloRepeatTask
@Override
public void invoke(long now)
{
if ( ! MassiveCore.isTaskServer()) return;
FactionColl.get().econLandRewardRoutine();
}

View File

@ -5,6 +5,7 @@ import org.bukkit.plugin.Plugin;
import com.massivecraft.factions.Factions;
import com.massivecraft.factions.entity.MConf;
import com.massivecraft.factions.entity.MPlayerColl;
import com.massivecraft.massivecore.MassiveCore;
import com.massivecraft.massivecore.ModuloRepeatTask;
import com.massivecraft.massivecore.util.TimeUnit;
@ -42,6 +43,7 @@ public class TaskPlayerDataRemove extends ModuloRepeatTask
@Override
public void invoke(long now)
{
if ( ! MassiveCore.isTaskServer()) return;
MPlayerColl.get().considerRemovePlayerMillis();
}