package de.iani.cubequest.quests;

import de.iani.cubequest.Reward;
import de.iani.cubequest.conditions.GameModeCondition;
import de.iani.cubequest.conditions.ServerFlagCondition;
import org.bukkit.GameMode;


public abstract class EconomyInfluencingAmountQuest extends AmountQuest {
    
    public static final String SURVIVAL_ECONOMY_TAG = "survival_economy";
    
    public EconomyInfluencingAmountQuest(int id, String name, String displayMessage,
            String giveMessage, String successMessage, Reward successReward, int amount) {
        super(id, name, displayMessage, giveMessage, successMessage, successReward, amount);
        init();
    }
    
    public EconomyInfluencingAmountQuest(int id, String name, String displayMessage,
            String giveMessage, String successMessage, Reward successReward) {
        super(id, name, displayMessage, giveMessage, successMessage, successReward, 0);
        init();
    }
    
    public EconomyInfluencingAmountQuest(int id) {
        super(id);
        init();
    }
    
    private void init() {
        addQuestProgressCondition(new ServerFlagCondition(false, SURVIVAL_ECONOMY_TAG), false);
        addQuestProgressCondition(new GameModeCondition(false, GameMode.SURVIVAL), false);
    }
    
}

@@ -104,112 +104,27 @@
 ons.
-GameModeCondition;%0D%0Aimport de.iani.cubequest.conditions.ServerFlagCondition;%0D%0Aimport org.bukkit.GameMode
+ServerFlagCondition
 ;%0D%0A%0D
@@ -1105,100 +1105,8 @@
 );%0D%0A
-        addQuestProgressCondition(new GameModeCondition(false, GameMode.SURVIVAL), false);%0D%0A
     

Remove duplicate default progress condition.