Only on task server
This commit is contained in:
parent
3b5dae4d80
commit
f11937efda
@ -5,6 +5,7 @@ import org.bukkit.plugin.Plugin;
|
|||||||
import com.massivecraft.factions.Factions;
|
import com.massivecraft.factions.Factions;
|
||||||
import com.massivecraft.factions.entity.FactionColl;
|
import com.massivecraft.factions.entity.FactionColl;
|
||||||
import com.massivecraft.factions.entity.MConf;
|
import com.massivecraft.factions.entity.MConf;
|
||||||
|
import com.massivecraft.massivecore.MassiveCore;
|
||||||
import com.massivecraft.massivecore.ModuloRepeatTask;
|
import com.massivecraft.massivecore.ModuloRepeatTask;
|
||||||
import com.massivecraft.massivecore.util.TimeUnit;
|
import com.massivecraft.massivecore.util.TimeUnit;
|
||||||
|
|
||||||
@ -42,6 +43,7 @@ public class TaskEconLandReward extends ModuloRepeatTask
|
|||||||
@Override
|
@Override
|
||||||
public void invoke(long now)
|
public void invoke(long now)
|
||||||
{
|
{
|
||||||
|
if ( ! MassiveCore.isTaskServer()) return;
|
||||||
FactionColl.get().econLandRewardRoutine();
|
FactionColl.get().econLandRewardRoutine();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,6 +5,7 @@ import org.bukkit.plugin.Plugin;
|
|||||||
import com.massivecraft.factions.Factions;
|
import com.massivecraft.factions.Factions;
|
||||||
import com.massivecraft.factions.entity.MConf;
|
import com.massivecraft.factions.entity.MConf;
|
||||||
import com.massivecraft.factions.entity.MPlayerColl;
|
import com.massivecraft.factions.entity.MPlayerColl;
|
||||||
|
import com.massivecraft.massivecore.MassiveCore;
|
||||||
import com.massivecraft.massivecore.ModuloRepeatTask;
|
import com.massivecraft.massivecore.ModuloRepeatTask;
|
||||||
import com.massivecraft.massivecore.util.TimeUnit;
|
import com.massivecraft.massivecore.util.TimeUnit;
|
||||||
|
|
||||||
@ -42,6 +43,7 @@ public class TaskPlayerDataRemove extends ModuloRepeatTask
|
|||||||
@Override
|
@Override
|
||||||
public void invoke(long now)
|
public void invoke(long now)
|
||||||
{
|
{
|
||||||
|
if ( ! MassiveCore.isTaskServer()) return;
|
||||||
MPlayerColl.get().considerRemovePlayerMillis();
|
MPlayerColl.get().considerRemovePlayerMillis();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user