mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-14 14:45:41 +01:00
Cleanup thunder action prompt
This commit is contained in:
parent
ed0beae1ec
commit
8b0a23255c
@ -1500,8 +1500,9 @@ public class ActionFactory implements ConversationAbandonedListener {
|
||||
if (input.intValue() < 1) {
|
||||
context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("invalidMinimum").replace("<number>", "1"));
|
||||
return new StormDurationPrompt();
|
||||
} else {
|
||||
context.setSessionData(CK.E_WORLD_STORM_DURATION, input.intValue());
|
||||
}
|
||||
context.setSessionData(CK.E_WORLD_STORM_DURATION, input.intValue());
|
||||
return new StormPrompt();
|
||||
}
|
||||
}
|
||||
@ -1517,7 +1518,7 @@ public class ActionFactory implements ConversationAbandonedListener {
|
||||
String text = ChatColor.GOLD + Lang.get("eventEditorThunderTitle") + "\n";
|
||||
if (context.getSessionData(CK.E_WORLD_THUNDER) == null) {
|
||||
text += ChatColor.BLUE + "" + ChatColor.BOLD + "1" + ChatColor.RESET + ChatColor.YELLOW + " - " + Lang.get("eventEditorSetWorld") + " (" + Lang.get("noneSet") + ")\n";
|
||||
text += ChatColor.GRAY + "2 - " + Lang.get("eventEditorSetDuration") + " " + Lang.get("eventEditorNoWorld") + "\n";
|
||||
text += ChatColor.GRAY + "" + ChatColor.BOLD + "2" + ChatColor.RESET + ChatColor.GRAY + " - " + Lang.get("eventEditorSetDuration") + " " + Lang.get("eventEditorNoWorld") + "\n";
|
||||
text += ChatColor.BLUE + "" + ChatColor.BOLD + "3" + ChatColor.RESET + ChatColor.YELLOW + " - " + Lang.get("clear") + "\n";
|
||||
text += ChatColor.BLUE + "" + ChatColor.BOLD + "4" + ChatColor.RESET + ChatColor.YELLOW + " - " + Lang.get("done");
|
||||
} else {
|
||||
@ -1599,7 +1600,7 @@ public class ActionFactory implements ConversationAbandonedListener {
|
||||
@Override
|
||||
protected Prompt acceptValidatedInput(ConversationContext context, Number input) {
|
||||
if (input.intValue() < 1) {
|
||||
context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("eventEditorAtLeastOneSecond"));
|
||||
context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("invalidMinimum").replace("<number>", "1"));
|
||||
return new ThunderDurationPrompt();
|
||||
} else {
|
||||
context.setSessionData(CK.E_WORLD_THUNDER_DURATION, input.intValue());
|
||||
|
@ -52,7 +52,6 @@ public class StageTimer implements Runnable {
|
||||
}
|
||||
quest.completeQuest(quester);
|
||||
} else {
|
||||
System.out.println("get delay = " + quester.getCurrentStage(quest).getDelay());
|
||||
Stage currentStage = quester.getCurrentStage(quest);
|
||||
int stageNum = quester.getCurrentQuests().get(quest) + 1;
|
||||
quester.hardQuit(quest);
|
||||
|
Loading…
Reference in New Issue
Block a user