mirror of
https://github.com/PikaMug/Quests.git
synced 2025-01-13 11:41:21 +01:00
Return from custom module prompts after clear
This commit is contained in:
parent
164d9801e2
commit
680afe8c44
@ -15,7 +15,6 @@ package me.blackvein.quests.convo.quests.requirements;
|
||||
import com.gmail.nossr50.datatypes.skills.SkillType;
|
||||
import com.herocraftonline.heroes.characters.classes.HeroClass;
|
||||
import me.blackvein.quests.CustomRequirement;
|
||||
import me.blackvein.quests.CustomReward;
|
||||
import me.blackvein.quests.Quest;
|
||||
import me.blackvein.quests.Quests;
|
||||
import me.blackvein.quests.convo.generic.ItemStackPrompt;
|
||||
@ -1463,8 +1462,9 @@ public class RequirementsPrompt extends QuestsEditorNumericPrompt {
|
||||
context.setSessionData(CK.REQ_CUSTOM_DATA, null);
|
||||
context.setSessionData(CK.REQ_CUSTOM_DATA_TEMP, null);
|
||||
context.getForWhom().sendRawMessage(ChatColor.YELLOW + Lang.get("reqCustomCleared"));
|
||||
return new RequirementsPrompt(context);
|
||||
}
|
||||
context.getForWhom().sendRawMessage(ChatColor.YELLOW + Lang.get("stageEditorModuleNotFound"));
|
||||
context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("reqCustomNotFound"));
|
||||
return new CustomRequirementModulePrompt(context);
|
||||
}
|
||||
}
|
||||
@ -1561,7 +1561,7 @@ public class RequirementsPrompt extends QuestsEditorNumericPrompt {
|
||||
return new RequirementCustomDataListPrompt();
|
||||
}
|
||||
} else {
|
||||
context.getForWhom().sendRawMessage(ChatColor.YELLOW + Lang.get("reqCustomNotFound"));
|
||||
context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("reqCustomNotFound"));
|
||||
return new CustomRequirementsPrompt(moduleName, context);
|
||||
}
|
||||
} else if (input.equalsIgnoreCase(Lang.get("cmdClear"))) {
|
||||
|
@ -1843,8 +1843,9 @@ public class RewardsPrompt extends QuestsEditorNumericPrompt {
|
||||
context.setSessionData(CK.REW_CUSTOM_DATA, null);
|
||||
context.setSessionData(CK.REW_CUSTOM_DATA_TEMP, null);
|
||||
context.getForWhom().sendRawMessage(ChatColor.YELLOW + Lang.get("rewCustomCleared"));
|
||||
return new RewardsPrompt(context);
|
||||
}
|
||||
context.getForWhom().sendRawMessage(ChatColor.YELLOW + Lang.get("stageEditorModuleNotFound"));
|
||||
context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("rewCustomNotFound"));
|
||||
return new CustomRewardModulePrompt(context);
|
||||
}
|
||||
}
|
||||
@ -1944,7 +1945,7 @@ public class RewardsPrompt extends QuestsEditorNumericPrompt {
|
||||
return new RewardCustomDataListPrompt();
|
||||
}
|
||||
} else {
|
||||
context.getForWhom().sendRawMessage(ChatColor.YELLOW + Lang.get("rewCustomNotFound"));
|
||||
context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("rewCustomNotFound"));
|
||||
return new CustomRewardsPrompt(moduleName, context);
|
||||
}
|
||||
} else if (input.equalsIgnoreCase(Lang.get("cmdClear"))) {
|
||||
|
@ -2428,8 +2428,9 @@ public class StageMainPrompt extends QuestsEditorNumericPrompt {
|
||||
context.setSessionData(stagePrefix + CK.S_CUSTOM_OBJECTIVES_DATA, null);
|
||||
context.setSessionData(stagePrefix + CK.S_CUSTOM_OBJECTIVES_DATA_TEMP, null);
|
||||
context.getForWhom().sendRawMessage(ChatColor.YELLOW + Lang.get("stageEditorCustomCleared"));
|
||||
return new StageMainPrompt(stageNum, context);
|
||||
}
|
||||
context.getForWhom().sendRawMessage(ChatColor.YELLOW + Lang.get("stageEditorModuleNotFound"));
|
||||
context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("stageEditorModuleNotFound"));
|
||||
return new CustomObjectiveModulePrompt(context);
|
||||
}
|
||||
}
|
||||
@ -2539,7 +2540,7 @@ public class StageMainPrompt extends QuestsEditorNumericPrompt {
|
||||
return new ObjectiveCustomDataListPrompt();
|
||||
}
|
||||
} else {
|
||||
context.getForWhom().sendRawMessage(ChatColor.YELLOW + Lang.get("stageEditorModuleNotFound"));
|
||||
context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("stageEditorModuleNotFound"));
|
||||
return new CustomObjectivesPrompt(moduleName, context);
|
||||
}
|
||||
} else if (input != null && input.equalsIgnoreCase(Lang.get("cmdClear"))) {
|
||||
|
Loading…
Reference in New Issue
Block a user