mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-23 19:15:49 +01:00
Supply external conversation hooks, part 26
This commit is contained in:
parent
a593e2f4e2
commit
ed52c6990f
@ -177,15 +177,15 @@ public class BlocksPrompt extends QuestsEditorNumericPrompt {
|
||||
protected Prompt acceptValidatedInput(ConversationContext context, Number input) {
|
||||
switch(input.intValue()) {
|
||||
case 1:
|
||||
return new BreakBlockListPrompt(context);
|
||||
return new BlocksBreakListPrompt(context);
|
||||
case 2:
|
||||
return new DamageBlockListPrompt(context);
|
||||
return new BlocksDamageListPrompt(context);
|
||||
case 3:
|
||||
return new PlaceBlockListPrompt(context);
|
||||
return new BlocksPlaceListPrompt(context);
|
||||
case 4:
|
||||
return new UseBlockListPrompt(context);
|
||||
return new BlocksUseListPrompt(context);
|
||||
case 5:
|
||||
return new CutBlockListPrompt(context);
|
||||
return new BlocksShearListPrompt(context);
|
||||
case 6:
|
||||
try {
|
||||
return new StageMainPrompt(stageNum, context);
|
||||
@ -198,9 +198,9 @@ public class BlocksPrompt extends QuestsEditorNumericPrompt {
|
||||
}
|
||||
}
|
||||
|
||||
public class BreakBlockListPrompt extends QuestsEditorNumericPrompt {
|
||||
public class BlocksBreakListPrompt extends QuestsEditorNumericPrompt {
|
||||
|
||||
public BreakBlockListPrompt(ConversationContext context) {
|
||||
public BlocksBreakListPrompt(ConversationContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@ -305,17 +305,17 @@ public class BlocksPrompt extends QuestsEditorNumericPrompt {
|
||||
protected Prompt acceptValidatedInput(ConversationContext context, Number input) {
|
||||
switch(input.intValue()) {
|
||||
case 1:
|
||||
return new BreakBlockNamesPrompt(context);
|
||||
return new BlockBreakNamesPrompt(context);
|
||||
case 2:
|
||||
return new BreakBlockAmountsPrompt(context);
|
||||
return new BlockBreakAmountsPrompt(context);
|
||||
case 3:
|
||||
return new BreakBlockDurabilityPrompt(context);
|
||||
return new BlockBreakDurabilityPrompt(context);
|
||||
case 4:
|
||||
context.getForWhom().sendRawMessage(ChatColor.YELLOW + Lang.get("stageEditorObjectiveCleared"));
|
||||
context.setSessionData(pref + CK.S_BREAK_NAMES, null);
|
||||
context.setSessionData(pref + CK.S_BREAK_AMOUNTS, null);
|
||||
context.setSessionData(pref + CK.S_BREAK_DURABILITY, null);
|
||||
return new BreakBlockListPrompt(context);
|
||||
return new BlocksBreakListPrompt(context);
|
||||
case 5:
|
||||
int one;
|
||||
int two;
|
||||
@ -346,7 +346,7 @@ public class BlocksPrompt extends QuestsEditorNumericPrompt {
|
||||
return new BlocksPrompt(stageNum, context);
|
||||
} else {
|
||||
context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("listsNotSameSize"));
|
||||
return new BreakBlockListPrompt(context);
|
||||
return new BlocksBreakListPrompt(context);
|
||||
}
|
||||
default:
|
||||
return new BlocksPrompt(stageNum, context);
|
||||
@ -354,9 +354,9 @@ public class BlocksPrompt extends QuestsEditorNumericPrompt {
|
||||
}
|
||||
}
|
||||
|
||||
public class BreakBlockNamesPrompt extends QuestsEditorStringPrompt {
|
||||
public class BlockBreakNamesPrompt extends QuestsEditorStringPrompt {
|
||||
|
||||
public BreakBlockNamesPrompt(ConversationContext context) {
|
||||
public BlockBreakNamesPrompt(ConversationContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@ -392,28 +392,28 @@ public class BlocksPrompt extends QuestsEditorNumericPrompt {
|
||||
} else {
|
||||
context.getForWhom().sendRawMessage(ChatColor.LIGHT_PURPLE + s + ChatColor.RED + " "
|
||||
+ Lang.get("stageEditorNotSolid"));
|
||||
return new BreakBlockNamesPrompt(context);
|
||||
return new BlockBreakNamesPrompt(context);
|
||||
}
|
||||
} else {
|
||||
context.getForWhom().sendRawMessage(ChatColor.LIGHT_PURPLE + s + ChatColor.RED + " "
|
||||
+ Lang.get("stageEditorInvalidBlockName"));
|
||||
return new BreakBlockNamesPrompt(context);
|
||||
return new BlockBreakNamesPrompt(context);
|
||||
}
|
||||
} catch (NumberFormatException e) {
|
||||
context.getForWhom().sendRawMessage(ChatColor.LIGHT_PURPLE + s + " " + ChatColor.RED
|
||||
+ Lang.get("stageEditorNotListofNumbers"));
|
||||
return new BreakBlockNamesPrompt(context);
|
||||
return new BlockBreakNamesPrompt(context);
|
||||
}
|
||||
}
|
||||
context.setSessionData(pref + CK.S_BREAK_NAMES, names);
|
||||
}
|
||||
return new BreakBlockListPrompt(context);
|
||||
return new BlocksBreakListPrompt(context);
|
||||
}
|
||||
}
|
||||
|
||||
public class BreakBlockAmountsPrompt extends QuestsEditorStringPrompt {
|
||||
public class BlockBreakAmountsPrompt extends QuestsEditorStringPrompt {
|
||||
|
||||
public BreakBlockAmountsPrompt(ConversationContext context) {
|
||||
public BlockBreakAmountsPrompt(ConversationContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@ -447,23 +447,23 @@ public class BlocksPrompt extends QuestsEditorNumericPrompt {
|
||||
} else {
|
||||
context.getForWhom().sendRawMessage(ChatColor.RED
|
||||
+ Lang.get("invalidMinimum").replace("<number>", "1"));
|
||||
return new BreakBlockAmountsPrompt(context);
|
||||
return new BlockBreakAmountsPrompt(context);
|
||||
}
|
||||
} catch (NumberFormatException e) {
|
||||
context.getForWhom().sendRawMessage(ChatColor.LIGHT_PURPLE + s + " " + ChatColor.RED
|
||||
+ Lang.get("stageEditorNotListofNumbers"));
|
||||
return new BreakBlockAmountsPrompt(context);
|
||||
return new BlockBreakAmountsPrompt(context);
|
||||
}
|
||||
}
|
||||
context.setSessionData(pref + CK.S_BREAK_AMOUNTS, amounts);
|
||||
}
|
||||
return new BreakBlockListPrompt(context);
|
||||
return new BlocksBreakListPrompt(context);
|
||||
}
|
||||
}
|
||||
|
||||
public class BreakBlockDurabilityPrompt extends QuestsEditorStringPrompt {
|
||||
public class BlockBreakDurabilityPrompt extends QuestsEditorStringPrompt {
|
||||
|
||||
public BreakBlockDurabilityPrompt(ConversationContext context) {
|
||||
public BlockBreakDurabilityPrompt(ConversationContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@ -497,23 +497,23 @@ public class BlocksPrompt extends QuestsEditorNumericPrompt {
|
||||
} else {
|
||||
context.getForWhom().sendRawMessage(ChatColor.RED
|
||||
+ Lang.get("invalidMinimum").replace("<number>", "0"));
|
||||
return new BreakBlockDurabilityPrompt(context);
|
||||
return new BlockBreakDurabilityPrompt(context);
|
||||
}
|
||||
} catch (NumberFormatException e) {
|
||||
context.getForWhom().sendRawMessage(ChatColor.LIGHT_PURPLE + s + " " + ChatColor.RED
|
||||
+ Lang.get("stageEditorNotListofNumbers"));
|
||||
return new BreakBlockDurabilityPrompt(context);
|
||||
return new BlockBreakDurabilityPrompt(context);
|
||||
}
|
||||
}
|
||||
context.setSessionData(pref + CK.S_BREAK_DURABILITY, durability);
|
||||
}
|
||||
return new BreakBlockListPrompt(context);
|
||||
return new BlocksBreakListPrompt(context);
|
||||
}
|
||||
}
|
||||
|
||||
public class DamageBlockListPrompt extends QuestsEditorNumericPrompt {
|
||||
public class BlocksDamageListPrompt extends QuestsEditorNumericPrompt {
|
||||
|
||||
public DamageBlockListPrompt(ConversationContext context) {
|
||||
public BlocksDamageListPrompt(ConversationContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@ -618,17 +618,17 @@ public class BlocksPrompt extends QuestsEditorNumericPrompt {
|
||||
protected Prompt acceptValidatedInput(ConversationContext context, Number input) {
|
||||
switch(input.intValue()) {
|
||||
case 1:
|
||||
return new DamageBlockNamesPrompt(context);
|
||||
return new BlockDamageNamesPrompt(context);
|
||||
case 2:
|
||||
return new DamageBlockAmountsPrompt(context);
|
||||
return new BlockDamageAmountsPrompt(context);
|
||||
case 3:
|
||||
return new DamageBlockDurabilityPrompt(context);
|
||||
return new BlockDamageDurabilityPrompt(context);
|
||||
case 4:
|
||||
context.getForWhom().sendRawMessage(ChatColor.YELLOW + Lang.get("stageEditorObjectiveCleared"));
|
||||
context.setSessionData(pref + CK.S_DAMAGE_NAMES, null);
|
||||
context.setSessionData(pref + CK.S_DAMAGE_AMOUNTS, null);
|
||||
context.setSessionData(pref + CK.S_DAMAGE_DURABILITY, null);
|
||||
return new DamageBlockListPrompt(context);
|
||||
return new BlocksDamageListPrompt(context);
|
||||
case 5:
|
||||
int one;
|
||||
int two;
|
||||
@ -659,7 +659,7 @@ public class BlocksPrompt extends QuestsEditorNumericPrompt {
|
||||
return new BlocksPrompt(stageNum, context);
|
||||
} else {
|
||||
context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("listsNotSameSize"));
|
||||
return new DamageBlockListPrompt(context);
|
||||
return new BlocksDamageListPrompt(context);
|
||||
}
|
||||
default:
|
||||
return new BlocksPrompt(stageNum, context);
|
||||
@ -667,9 +667,9 @@ public class BlocksPrompt extends QuestsEditorNumericPrompt {
|
||||
}
|
||||
}
|
||||
|
||||
public class DamageBlockNamesPrompt extends QuestsEditorStringPrompt {
|
||||
public class BlockDamageNamesPrompt extends QuestsEditorStringPrompt {
|
||||
|
||||
public DamageBlockNamesPrompt(ConversationContext context) {
|
||||
public BlockDamageNamesPrompt(ConversationContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@ -705,28 +705,28 @@ public class BlocksPrompt extends QuestsEditorNumericPrompt {
|
||||
} else {
|
||||
context.getForWhom().sendRawMessage(ChatColor.LIGHT_PURPLE + s + ChatColor.RED + " "
|
||||
+ Lang.get("stageEditorNotSolid"));
|
||||
return new DamageBlockNamesPrompt(context);
|
||||
return new BlockDamageNamesPrompt(context);
|
||||
}
|
||||
} else {
|
||||
context.getForWhom().sendRawMessage(ChatColor.LIGHT_PURPLE + s + ChatColor.RED + " "
|
||||
+ Lang.get("stageEditorInvalidBlockName"));
|
||||
return new DamageBlockNamesPrompt(context);
|
||||
return new BlockDamageNamesPrompt(context);
|
||||
}
|
||||
} catch (NumberFormatException e) {
|
||||
context.getForWhom().sendRawMessage(ChatColor.LIGHT_PURPLE + s + " " + ChatColor.RED
|
||||
+ Lang.get("stageEditorNotListofNumbers"));
|
||||
return new DamageBlockNamesPrompt(context);
|
||||
return new BlockDamageNamesPrompt(context);
|
||||
}
|
||||
}
|
||||
context.setSessionData(pref + CK.S_DAMAGE_NAMES, names);
|
||||
}
|
||||
return new DamageBlockListPrompt(context);
|
||||
return new BlocksDamageListPrompt(context);
|
||||
}
|
||||
}
|
||||
|
||||
public class DamageBlockAmountsPrompt extends QuestsEditorStringPrompt {
|
||||
public class BlockDamageAmountsPrompt extends QuestsEditorStringPrompt {
|
||||
|
||||
public DamageBlockAmountsPrompt(ConversationContext context) {
|
||||
public BlockDamageAmountsPrompt(ConversationContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@ -760,23 +760,23 @@ public class BlocksPrompt extends QuestsEditorNumericPrompt {
|
||||
} else {
|
||||
context.getForWhom().sendRawMessage(ChatColor.RED
|
||||
+ Lang.get("invalidMinimum").replace("<number>", "1"));
|
||||
return new DamageBlockAmountsPrompt(context);
|
||||
return new BlockDamageAmountsPrompt(context);
|
||||
}
|
||||
} catch (NumberFormatException e) {
|
||||
context.getForWhom().sendRawMessage(ChatColor.LIGHT_PURPLE + s + " " + ChatColor.RED
|
||||
+ Lang.get("stageEditorNotListofNumbers"));
|
||||
return new DamageBlockAmountsPrompt(context);
|
||||
return new BlockDamageAmountsPrompt(context);
|
||||
}
|
||||
}
|
||||
context.setSessionData(pref + CK.S_DAMAGE_AMOUNTS, amounts);
|
||||
}
|
||||
return new DamageBlockListPrompt(context);
|
||||
return new BlocksDamageListPrompt(context);
|
||||
}
|
||||
}
|
||||
|
||||
public class DamageBlockDurabilityPrompt extends QuestsEditorStringPrompt {
|
||||
public class BlockDamageDurabilityPrompt extends QuestsEditorStringPrompt {
|
||||
|
||||
public DamageBlockDurabilityPrompt(ConversationContext context) {
|
||||
public BlockDamageDurabilityPrompt(ConversationContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@ -810,23 +810,23 @@ public class BlocksPrompt extends QuestsEditorNumericPrompt {
|
||||
} else {
|
||||
context.getForWhom().sendRawMessage(ChatColor.RED
|
||||
+ Lang.get("invalidMinimum").replace("<number>", "0"));
|
||||
return new DamageBlockDurabilityPrompt(context);
|
||||
return new BlockDamageDurabilityPrompt(context);
|
||||
}
|
||||
} catch (NumberFormatException e) {
|
||||
context.getForWhom().sendRawMessage(ChatColor.LIGHT_PURPLE + s + " " + ChatColor.RED
|
||||
+ Lang.get("stageEditorNotListofNumbers"));
|
||||
return new DamageBlockDurabilityPrompt(context);
|
||||
return new BlockDamageDurabilityPrompt(context);
|
||||
}
|
||||
}
|
||||
context.setSessionData(pref + CK.S_DAMAGE_DURABILITY, durability);
|
||||
}
|
||||
return new DamageBlockListPrompt(context);
|
||||
return new BlocksDamageListPrompt(context);
|
||||
}
|
||||
}
|
||||
|
||||
public class PlaceBlockListPrompt extends QuestsEditorNumericPrompt {
|
||||
public class BlocksPlaceListPrompt extends QuestsEditorNumericPrompt {
|
||||
|
||||
public PlaceBlockListPrompt(ConversationContext context) {
|
||||
public BlocksPlaceListPrompt(ConversationContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@ -931,17 +931,17 @@ public class BlocksPrompt extends QuestsEditorNumericPrompt {
|
||||
protected Prompt acceptValidatedInput(ConversationContext context, Number input) {
|
||||
switch(input.intValue()) {
|
||||
case 1:
|
||||
return new PlaceBlockNamesPrompt(context);
|
||||
return new BlockPlaceNamesPrompt(context);
|
||||
case 2:
|
||||
return new PlaceBlockAmountsPrompt(context);
|
||||
return new BlockPlaceAmountsPrompt(context);
|
||||
case 3:
|
||||
return new PlaceBlockDurabilityPrompt(context);
|
||||
return new BlockPlaceDurabilityPrompt(context);
|
||||
case 4:
|
||||
context.getForWhom().sendRawMessage(ChatColor.YELLOW + Lang.get("stageEditorObjectiveCleared"));
|
||||
context.setSessionData(pref + CK.S_PLACE_NAMES, null);
|
||||
context.setSessionData(pref + CK.S_PLACE_AMOUNTS, null);
|
||||
context.setSessionData(pref + CK.S_PLACE_DURABILITY, null);
|
||||
return new PlaceBlockListPrompt(context);
|
||||
return new BlocksPlaceListPrompt(context);
|
||||
case 5:
|
||||
int one;
|
||||
int two;
|
||||
@ -972,7 +972,7 @@ public class BlocksPrompt extends QuestsEditorNumericPrompt {
|
||||
return new BlocksPrompt(stageNum, context);
|
||||
} else {
|
||||
context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("listsNotSameSize"));
|
||||
return new PlaceBlockListPrompt(context);
|
||||
return new BlocksPlaceListPrompt(context);
|
||||
}
|
||||
default:
|
||||
return new BlocksPrompt(stageNum, context);
|
||||
@ -980,9 +980,9 @@ public class BlocksPrompt extends QuestsEditorNumericPrompt {
|
||||
}
|
||||
}
|
||||
|
||||
public class PlaceBlockNamesPrompt extends QuestsEditorStringPrompt {
|
||||
public class BlockPlaceNamesPrompt extends QuestsEditorStringPrompt {
|
||||
|
||||
public PlaceBlockNamesPrompt(ConversationContext context) {
|
||||
public BlockPlaceNamesPrompt(ConversationContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@ -1018,28 +1018,28 @@ public class BlocksPrompt extends QuestsEditorNumericPrompt {
|
||||
} else {
|
||||
context.getForWhom().sendRawMessage(ChatColor.LIGHT_PURPLE + s + ChatColor.RED + " "
|
||||
+ Lang.get("stageEditorNotSolid"));
|
||||
return new PlaceBlockNamesPrompt(context);
|
||||
return new BlockPlaceNamesPrompt(context);
|
||||
}
|
||||
} else {
|
||||
context.getForWhom().sendRawMessage(ChatColor.LIGHT_PURPLE + s + ChatColor.RED
|
||||
+ Lang.get("stageEditorInvalidBlockName"));
|
||||
return new PlaceBlockNamesPrompt(context);
|
||||
return new BlockPlaceNamesPrompt(context);
|
||||
}
|
||||
} catch (NumberFormatException e) {
|
||||
context.getForWhom().sendRawMessage(ChatColor.LIGHT_PURPLE + s + " " + ChatColor.RED
|
||||
+ Lang.get("stageEditorNotListofNumbers"));
|
||||
return new PlaceBlockNamesPrompt(context);
|
||||
return new BlockPlaceNamesPrompt(context);
|
||||
}
|
||||
}
|
||||
context.setSessionData(pref + CK.S_PLACE_NAMES, names);
|
||||
}
|
||||
return new PlaceBlockListPrompt(context);
|
||||
return new BlocksPlaceListPrompt(context);
|
||||
}
|
||||
}
|
||||
|
||||
public class PlaceBlockAmountsPrompt extends QuestsEditorStringPrompt {
|
||||
public class BlockPlaceAmountsPrompt extends QuestsEditorStringPrompt {
|
||||
|
||||
public PlaceBlockAmountsPrompt(ConversationContext context) {
|
||||
public BlockPlaceAmountsPrompt(ConversationContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@ -1073,23 +1073,23 @@ public class BlocksPrompt extends QuestsEditorNumericPrompt {
|
||||
} else {
|
||||
context.getForWhom().sendRawMessage(ChatColor.RED
|
||||
+ Lang.get("invalidMinimum").replace("<number>", "1"));
|
||||
return new PlaceBlockAmountsPrompt(context);
|
||||
return new BlockPlaceAmountsPrompt(context);
|
||||
}
|
||||
} catch (NumberFormatException e) {
|
||||
context.getForWhom().sendRawMessage(ChatColor.LIGHT_PURPLE + s + " " + ChatColor.RED
|
||||
+ Lang.get("stageEditorNotListofNumbers"));
|
||||
return new PlaceBlockAmountsPrompt(context);
|
||||
return new BlockPlaceAmountsPrompt(context);
|
||||
}
|
||||
}
|
||||
context.setSessionData(pref + CK.S_PLACE_AMOUNTS, amounts);
|
||||
}
|
||||
return new PlaceBlockListPrompt(context);
|
||||
return new BlocksPlaceListPrompt(context);
|
||||
}
|
||||
}
|
||||
|
||||
public class PlaceBlockDurabilityPrompt extends QuestsEditorStringPrompt {
|
||||
public class BlockPlaceDurabilityPrompt extends QuestsEditorStringPrompt {
|
||||
|
||||
public PlaceBlockDurabilityPrompt(ConversationContext context) {
|
||||
public BlockPlaceDurabilityPrompt(ConversationContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@ -1123,23 +1123,23 @@ public class BlocksPrompt extends QuestsEditorNumericPrompt {
|
||||
} else {
|
||||
context.getForWhom().sendRawMessage(ChatColor.RED
|
||||
+ Lang.get("invalidMinimum").replace("<number>", "0"));
|
||||
return new PlaceBlockDurabilityPrompt(context);
|
||||
return new BlockPlaceDurabilityPrompt(context);
|
||||
}
|
||||
} catch (NumberFormatException e) {
|
||||
context.getForWhom().sendRawMessage(ChatColor.LIGHT_PURPLE + s + " " + ChatColor.RED
|
||||
+ Lang.get("stageEditorNotListofNumbers"));
|
||||
return new PlaceBlockDurabilityPrompt(context);
|
||||
return new BlockPlaceDurabilityPrompt(context);
|
||||
}
|
||||
}
|
||||
context.setSessionData(pref + CK.S_PLACE_DURABILITY, durability);
|
||||
}
|
||||
return new PlaceBlockListPrompt(context);
|
||||
return new BlocksPlaceListPrompt(context);
|
||||
}
|
||||
}
|
||||
|
||||
public class UseBlockListPrompt extends QuestsEditorNumericPrompt {
|
||||
public class BlocksUseListPrompt extends QuestsEditorNumericPrompt {
|
||||
|
||||
public UseBlockListPrompt(ConversationContext context) {
|
||||
public BlocksUseListPrompt(ConversationContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@ -1244,17 +1244,17 @@ public class BlocksPrompt extends QuestsEditorNumericPrompt {
|
||||
protected Prompt acceptValidatedInput(ConversationContext context, Number input) {
|
||||
switch(input.intValue()) {
|
||||
case 1:
|
||||
return new UseBlockNamesPrompt(context);
|
||||
return new BlockUseNamesPrompt(context);
|
||||
case 2:
|
||||
return new UseBlockAmountsPrompt(context);
|
||||
return new BlockUseAmountsPrompt(context);
|
||||
case 3:
|
||||
return new UseBlockDurabilityPrompt(context);
|
||||
return new BlockUseDurabilityPrompt(context);
|
||||
case 4:
|
||||
context.getForWhom().sendRawMessage(ChatColor.YELLOW + Lang.get("stageEditorObjectiveCleared"));
|
||||
context.setSessionData(pref + CK.S_USE_NAMES, null);
|
||||
context.setSessionData(pref + CK.S_USE_AMOUNTS, null);
|
||||
context.setSessionData(pref + CK.S_USE_DURABILITY, null);
|
||||
return new UseBlockListPrompt(context);
|
||||
return new BlocksUseListPrompt(context);
|
||||
case 5:
|
||||
int one;
|
||||
int two;
|
||||
@ -1285,7 +1285,7 @@ public class BlocksPrompt extends QuestsEditorNumericPrompt {
|
||||
return new BlocksPrompt(stageNum, context);
|
||||
} else {
|
||||
context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("listsNotSameSize"));
|
||||
return new UseBlockListPrompt(context);
|
||||
return new BlocksUseListPrompt(context);
|
||||
}
|
||||
default:
|
||||
return new BlocksPrompt(stageNum, context);
|
||||
@ -1293,9 +1293,9 @@ public class BlocksPrompt extends QuestsEditorNumericPrompt {
|
||||
}
|
||||
}
|
||||
|
||||
public class UseBlockNamesPrompt extends QuestsEditorStringPrompt {
|
||||
public class BlockUseNamesPrompt extends QuestsEditorStringPrompt {
|
||||
|
||||
public UseBlockNamesPrompt(ConversationContext context) {
|
||||
public BlockUseNamesPrompt(ConversationContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@ -1331,28 +1331,28 @@ public class BlocksPrompt extends QuestsEditorNumericPrompt {
|
||||
} else {
|
||||
context.getForWhom().sendRawMessage(ChatColor.LIGHT_PURPLE + s + ChatColor.RED + " "
|
||||
+ Lang.get("stageEditorNotSolid"));
|
||||
return new UseBlockNamesPrompt(context);
|
||||
return new BlockUseNamesPrompt(context);
|
||||
}
|
||||
} else {
|
||||
context.getForWhom().sendRawMessage(ChatColor.LIGHT_PURPLE + s + ChatColor.RED + " "
|
||||
+ Lang.get("stageEditorInvalidBlockName"));
|
||||
return new UseBlockNamesPrompt(context);
|
||||
return new BlockUseNamesPrompt(context);
|
||||
}
|
||||
} catch (NumberFormatException e) {
|
||||
context.getForWhom().sendRawMessage(ChatColor.LIGHT_PURPLE + s + " " + ChatColor.RED
|
||||
+ Lang.get("stageEditorNotListofNumbers"));
|
||||
return new UseBlockNamesPrompt(context);
|
||||
return new BlockUseNamesPrompt(context);
|
||||
}
|
||||
}
|
||||
context.setSessionData(pref + CK.S_USE_NAMES, names);
|
||||
}
|
||||
return new UseBlockListPrompt(context);
|
||||
return new BlocksUseListPrompt(context);
|
||||
}
|
||||
}
|
||||
|
||||
public class UseBlockAmountsPrompt extends QuestsEditorStringPrompt {
|
||||
public class BlockUseAmountsPrompt extends QuestsEditorStringPrompt {
|
||||
|
||||
public UseBlockAmountsPrompt(ConversationContext context) {
|
||||
public BlockUseAmountsPrompt(ConversationContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@ -1386,23 +1386,23 @@ public class BlocksPrompt extends QuestsEditorNumericPrompt {
|
||||
} else {
|
||||
context.getForWhom().sendRawMessage(ChatColor.RED
|
||||
+ Lang.get("invalidMinimum").replace("<number>", "1"));
|
||||
return new UseBlockAmountsPrompt(context);
|
||||
return new BlockUseAmountsPrompt(context);
|
||||
}
|
||||
} catch (NumberFormatException e) {
|
||||
context.getForWhom().sendRawMessage(ChatColor.LIGHT_PURPLE + s + " " + ChatColor.RED
|
||||
+ Lang.get("stageEditorNotListofNumbers"));
|
||||
return new UseBlockAmountsPrompt(context);
|
||||
return new BlockUseAmountsPrompt(context);
|
||||
}
|
||||
}
|
||||
context.setSessionData(pref + CK.S_USE_AMOUNTS, amounts);
|
||||
}
|
||||
return new UseBlockListPrompt(context);
|
||||
return new BlocksUseListPrompt(context);
|
||||
}
|
||||
}
|
||||
|
||||
public class UseBlockDurabilityPrompt extends QuestsEditorStringPrompt {
|
||||
public class BlockUseDurabilityPrompt extends QuestsEditorStringPrompt {
|
||||
|
||||
public UseBlockDurabilityPrompt(ConversationContext context) {
|
||||
public BlockUseDurabilityPrompt(ConversationContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@ -1436,23 +1436,23 @@ public class BlocksPrompt extends QuestsEditorNumericPrompt {
|
||||
} else {
|
||||
context.getForWhom().sendRawMessage(ChatColor.RED
|
||||
+ Lang.get("invalidMinimum").replace("<number>", "0"));
|
||||
return new UseBlockDurabilityPrompt(context);
|
||||
return new BlockUseDurabilityPrompt(context);
|
||||
}
|
||||
} catch (NumberFormatException e) {
|
||||
context.getForWhom().sendRawMessage(ChatColor.LIGHT_PURPLE + s + " " + ChatColor.RED
|
||||
+ Lang.get("stageEditorNotListofNumbers"));
|
||||
return new UseBlockDurabilityPrompt(context);
|
||||
return new BlockUseDurabilityPrompt(context);
|
||||
}
|
||||
}
|
||||
context.setSessionData(pref + CK.S_USE_DURABILITY, durability);
|
||||
}
|
||||
return new UseBlockListPrompt(context);
|
||||
return new BlocksUseListPrompt(context);
|
||||
}
|
||||
}
|
||||
|
||||
public class CutBlockListPrompt extends QuestsEditorNumericPrompt {
|
||||
public class BlocksShearListPrompt extends QuestsEditorNumericPrompt {
|
||||
|
||||
public CutBlockListPrompt(ConversationContext context) {
|
||||
public BlocksShearListPrompt(ConversationContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@ -1557,17 +1557,17 @@ public class BlocksPrompt extends QuestsEditorNumericPrompt {
|
||||
protected Prompt acceptValidatedInput(ConversationContext context, Number input) {
|
||||
switch(input.intValue()) {
|
||||
case 1:
|
||||
return new CutBlockNamesPrompt(context);
|
||||
return new BlockShearNamesPrompt(context);
|
||||
case 2:
|
||||
return new CutBlockAmountsPrompt(context);
|
||||
return new BlockShearAmountsPrompt(context);
|
||||
case 3:
|
||||
return new CutBlockDurabilityPrompt(context);
|
||||
return new BlockShearDurabilityPrompt(context);
|
||||
case 4:
|
||||
context.getForWhom().sendRawMessage(ChatColor.YELLOW + Lang.get("stageEditorObjectiveCleared"));
|
||||
context.setSessionData(pref + CK.S_CUT_NAMES, null);
|
||||
context.setSessionData(pref + CK.S_CUT_AMOUNTS, null);
|
||||
context.setSessionData(pref + CK.S_CUT_DURABILITY, null);
|
||||
return new CutBlockListPrompt(context);
|
||||
return new BlocksShearListPrompt(context);
|
||||
case 5:
|
||||
int one;
|
||||
int two;
|
||||
@ -1598,7 +1598,7 @@ public class BlocksPrompt extends QuestsEditorNumericPrompt {
|
||||
return new BlocksPrompt(stageNum, context);
|
||||
} else {
|
||||
context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("listsNotSameSize"));
|
||||
return new CutBlockListPrompt(context);
|
||||
return new BlocksShearListPrompt(context);
|
||||
}
|
||||
default:
|
||||
return new BlocksPrompt(stageNum, context);
|
||||
@ -1606,9 +1606,9 @@ public class BlocksPrompt extends QuestsEditorNumericPrompt {
|
||||
}
|
||||
}
|
||||
|
||||
public class CutBlockNamesPrompt extends QuestsEditorStringPrompt {
|
||||
public class BlockShearNamesPrompt extends QuestsEditorStringPrompt {
|
||||
|
||||
public CutBlockNamesPrompt(ConversationContext context) {
|
||||
public BlockShearNamesPrompt(ConversationContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@ -1644,28 +1644,28 @@ public class BlocksPrompt extends QuestsEditorNumericPrompt {
|
||||
} else {
|
||||
context.getForWhom().sendRawMessage(ChatColor.LIGHT_PURPLE + s + ChatColor.RED + " "
|
||||
+ Lang.get("stageEditorNotSolid"));
|
||||
return new CutBlockNamesPrompt(context);
|
||||
return new BlockShearNamesPrompt(context);
|
||||
}
|
||||
} else {
|
||||
context.getForWhom().sendRawMessage(ChatColor.LIGHT_PURPLE + s + ChatColor.RED + " "
|
||||
+ Lang.get("stageEditorInvalidBlockName"));
|
||||
return new CutBlockNamesPrompt(context);
|
||||
return new BlockShearNamesPrompt(context);
|
||||
}
|
||||
} catch (NumberFormatException e) {
|
||||
context.getForWhom().sendRawMessage(ChatColor.LIGHT_PURPLE + s + " " + ChatColor.RED
|
||||
+ Lang.get("stageEditorNotListofNumbers"));
|
||||
return new CutBlockNamesPrompt(context);
|
||||
return new BlockShearNamesPrompt(context);
|
||||
}
|
||||
}
|
||||
context.setSessionData(pref + CK.S_CUT_NAMES, names);
|
||||
}
|
||||
return new CutBlockListPrompt(context);
|
||||
return new BlocksShearListPrompt(context);
|
||||
}
|
||||
}
|
||||
|
||||
public class CutBlockAmountsPrompt extends QuestsEditorStringPrompt {
|
||||
public class BlockShearAmountsPrompt extends QuestsEditorStringPrompt {
|
||||
|
||||
public CutBlockAmountsPrompt(ConversationContext context) {
|
||||
public BlockShearAmountsPrompt(ConversationContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@ -1699,23 +1699,23 @@ public class BlocksPrompt extends QuestsEditorNumericPrompt {
|
||||
} else {
|
||||
context.getForWhom().sendRawMessage(ChatColor.RED
|
||||
+ Lang.get("invalidMinimum").replace("<number>", "1"));
|
||||
return new CutBlockAmountsPrompt(context);
|
||||
return new BlockShearAmountsPrompt(context);
|
||||
}
|
||||
} catch (NumberFormatException e) {
|
||||
context.getForWhom().sendRawMessage(ChatColor.LIGHT_PURPLE + s + " " + ChatColor.RED
|
||||
+ Lang.get("stageEditorNotListofNumbers"));
|
||||
return new CutBlockAmountsPrompt(context);
|
||||
return new BlockShearAmountsPrompt(context);
|
||||
}
|
||||
}
|
||||
context.setSessionData(pref + CK.S_CUT_AMOUNTS, amounts);
|
||||
}
|
||||
return new CutBlockListPrompt(context);
|
||||
return new BlocksShearListPrompt(context);
|
||||
}
|
||||
}
|
||||
|
||||
public class CutBlockDurabilityPrompt extends QuestsEditorStringPrompt {
|
||||
public class BlockShearDurabilityPrompt extends QuestsEditorStringPrompt {
|
||||
|
||||
public CutBlockDurabilityPrompt(ConversationContext context) {
|
||||
public BlockShearDurabilityPrompt(ConversationContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@ -1749,17 +1749,17 @@ public class BlocksPrompt extends QuestsEditorNumericPrompt {
|
||||
} else {
|
||||
context.getForWhom().sendRawMessage(ChatColor.RED
|
||||
+ Lang.get("invalidMinimum").replace("<number>", "0"));
|
||||
return new CutBlockDurabilityPrompt(context);
|
||||
return new BlockShearDurabilityPrompt(context);
|
||||
}
|
||||
} catch (NumberFormatException e) {
|
||||
context.getForWhom().sendRawMessage(ChatColor.LIGHT_PURPLE + s + " " + ChatColor.RED
|
||||
+ Lang.get("stageEditorNotListofNumbers"));
|
||||
return new CutBlockDurabilityPrompt(context);
|
||||
return new BlockShearDurabilityPrompt(context);
|
||||
}
|
||||
}
|
||||
context.setSessionData(pref + CK.S_CUT_DURABILITY, durability);
|
||||
}
|
||||
return new CutBlockListPrompt(context);
|
||||
return new BlocksShearListPrompt(context);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -195,15 +195,15 @@ public class ItemsPrompt extends QuestsEditorNumericPrompt {
|
||||
protected Prompt acceptValidatedInput(ConversationContext context, Number input) {
|
||||
switch(input.intValue()) {
|
||||
case 1:
|
||||
return new CraftListPrompt(context);
|
||||
return new ItemsCraftListPrompt(context);
|
||||
case 2:
|
||||
return new SmeltListPrompt(context);
|
||||
return new ItemsSmeltListPrompt(context);
|
||||
case 3:
|
||||
return new EnchantmentListPrompt(context);
|
||||
return new ItemsEnchantmentListPrompt(context);
|
||||
case 4:
|
||||
return new BrewListPrompt(context);
|
||||
return new ItemsBrewListPrompt(context);
|
||||
case 5:
|
||||
return new ConsumeListPrompt(context);
|
||||
return new ItemsConsumeListPrompt(context);
|
||||
case 6:
|
||||
try {
|
||||
return new StageMainPrompt(stageNum, context);
|
||||
@ -216,9 +216,9 @@ public class ItemsPrompt extends QuestsEditorNumericPrompt {
|
||||
}
|
||||
}
|
||||
|
||||
public class CraftListPrompt extends QuestsEditorNumericPrompt {
|
||||
public class ItemsCraftListPrompt extends QuestsEditorNumericPrompt {
|
||||
|
||||
public CraftListPrompt(ConversationContext context) {
|
||||
public ItemsCraftListPrompt(ConversationContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@ -312,11 +312,11 @@ public class ItemsPrompt extends QuestsEditorNumericPrompt {
|
||||
protected Prompt acceptValidatedInput(ConversationContext context, Number input) {
|
||||
switch(input.intValue()) {
|
||||
case 1:
|
||||
return new ItemStackPrompt(CraftListPrompt.this);
|
||||
return new ItemStackPrompt(ItemsCraftListPrompt.this);
|
||||
case 2:
|
||||
context.getForWhom().sendRawMessage(ChatColor.YELLOW + Lang.get("stageEditorObjectiveCleared"));
|
||||
context.setSessionData(pref + CK.S_CRAFT_ITEMS, null);
|
||||
return new CraftListPrompt(context);
|
||||
return new ItemsCraftListPrompt(context);
|
||||
case 3:
|
||||
return new ItemsPrompt(stageNum, context);
|
||||
default:
|
||||
@ -325,9 +325,9 @@ public class ItemsPrompt extends QuestsEditorNumericPrompt {
|
||||
}
|
||||
}
|
||||
|
||||
public class SmeltListPrompt extends QuestsEditorNumericPrompt {
|
||||
public class ItemsSmeltListPrompt extends QuestsEditorNumericPrompt {
|
||||
|
||||
public SmeltListPrompt(ConversationContext context) {
|
||||
public ItemsSmeltListPrompt(ConversationContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@ -421,11 +421,11 @@ public class ItemsPrompt extends QuestsEditorNumericPrompt {
|
||||
protected Prompt acceptValidatedInput(ConversationContext context, Number input) {
|
||||
switch(input.intValue()) {
|
||||
case 1:
|
||||
return new ItemStackPrompt(SmeltListPrompt.this);
|
||||
return new ItemStackPrompt(ItemsSmeltListPrompt.this);
|
||||
case 2:
|
||||
context.getForWhom().sendRawMessage(ChatColor.YELLOW + Lang.get("stageEditorObjectiveCleared"));
|
||||
context.setSessionData(pref + CK.S_SMELT_ITEMS, null);
|
||||
return new SmeltListPrompt(context);
|
||||
return new ItemsSmeltListPrompt(context);
|
||||
case 3:
|
||||
return new ItemsPrompt(stageNum, context);
|
||||
default:
|
||||
@ -434,9 +434,9 @@ public class ItemsPrompt extends QuestsEditorNumericPrompt {
|
||||
}
|
||||
}
|
||||
|
||||
public class EnchantmentListPrompt extends QuestsEditorNumericPrompt {
|
||||
public class ItemsEnchantmentListPrompt extends QuestsEditorNumericPrompt {
|
||||
|
||||
public EnchantmentListPrompt(ConversationContext context) {
|
||||
public ItemsEnchantmentListPrompt(ConversationContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@ -539,17 +539,17 @@ public class ItemsPrompt extends QuestsEditorNumericPrompt {
|
||||
protected Prompt acceptValidatedInput(ConversationContext context, Number input) {
|
||||
switch(input.intValue()) {
|
||||
case 1:
|
||||
return new EnchantTypesPrompt(context);
|
||||
return new ItemEnchantTypesPrompt(context);
|
||||
case 2:
|
||||
return new EnchantItemsPrompt(context);
|
||||
return new ItemEnchantItemsPrompt(context);
|
||||
case 3:
|
||||
return new EnchantAmountsPrompt(context);
|
||||
return new ItemEnchantAmountsPrompt(context);
|
||||
case 4:
|
||||
context.getForWhom().sendRawMessage(ChatColor.YELLOW + Lang.get("stageEditorObjectiveCleared"));
|
||||
context.setSessionData(pref + CK.S_ENCHANT_TYPES, null);
|
||||
context.setSessionData(pref + CK.S_ENCHANT_NAMES, null);
|
||||
context.setSessionData(pref + CK.S_ENCHANT_AMOUNTS, null);
|
||||
return new EnchantmentListPrompt(context);
|
||||
return new ItemsEnchantmentListPrompt(context);
|
||||
case 5:
|
||||
int one;
|
||||
int two;
|
||||
@ -573,7 +573,7 @@ public class ItemsPrompt extends QuestsEditorNumericPrompt {
|
||||
return new ItemsPrompt(stageNum, context);
|
||||
} else {
|
||||
context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("listsNotSameSize"));
|
||||
return new EnchantmentListPrompt(context);
|
||||
return new ItemsEnchantmentListPrompt(context);
|
||||
}
|
||||
default:
|
||||
return new ItemsPrompt(stageNum, context);
|
||||
@ -581,9 +581,9 @@ public class ItemsPrompt extends QuestsEditorNumericPrompt {
|
||||
}
|
||||
}
|
||||
|
||||
public class EnchantTypesPrompt extends QuestsEditorStringPrompt {
|
||||
public class ItemEnchantTypesPrompt extends QuestsEditorStringPrompt {
|
||||
|
||||
public EnchantTypesPrompt(ConversationContext context) {
|
||||
public ItemEnchantTypesPrompt(ConversationContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@ -626,23 +626,23 @@ public class ItemsPrompt extends QuestsEditorNumericPrompt {
|
||||
enchTypes.add(s);
|
||||
} else {
|
||||
context.getForWhom().sendRawMessage(ChatColor.RED + " " + Lang.get("listDuplicate"));
|
||||
return new EnchantTypesPrompt(context);
|
||||
return new ItemEnchantTypesPrompt(context);
|
||||
}
|
||||
} else {
|
||||
context.getForWhom().sendRawMessage(ChatColor.LIGHT_PURPLE + s + ChatColor.RED + " "
|
||||
+ Lang.get("stageEditorInvalidEnchantment"));
|
||||
return new EnchantTypesPrompt(context);
|
||||
return new ItemEnchantTypesPrompt(context);
|
||||
}
|
||||
}
|
||||
context.setSessionData(pref + CK.S_ENCHANT_TYPES, enchTypes);
|
||||
}
|
||||
return new EnchantmentListPrompt(context);
|
||||
return new ItemsEnchantmentListPrompt(context);
|
||||
}
|
||||
}
|
||||
|
||||
public class EnchantItemsPrompt extends QuestsEditorStringPrompt {
|
||||
public class ItemEnchantItemsPrompt extends QuestsEditorStringPrompt {
|
||||
|
||||
public EnchantItemsPrompt(ConversationContext context) {
|
||||
public ItemEnchantItemsPrompt(ConversationContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@ -676,23 +676,23 @@ public class ItemsPrompt extends QuestsEditorNumericPrompt {
|
||||
} else {
|
||||
context.getForWhom().sendRawMessage(ChatColor.LIGHT_PURPLE + s + ChatColor.RED + " "
|
||||
+ Lang.get("stageEditorInvalidItemName"));
|
||||
return new EnchantItemsPrompt(context);
|
||||
return new ItemEnchantItemsPrompt(context);
|
||||
}
|
||||
} catch (NumberFormatException e) {
|
||||
context.getForWhom().sendRawMessage(ChatColor.LIGHT_PURPLE + s + " " + ChatColor.RED
|
||||
+ Lang.get("stageEditorNotListofNumbers"));
|
||||
return new EnchantItemsPrompt(context);
|
||||
return new ItemEnchantItemsPrompt(context);
|
||||
}
|
||||
}
|
||||
context.setSessionData(pref + CK.S_ENCHANT_NAMES, names);
|
||||
}
|
||||
return new EnchantmentListPrompt(context);
|
||||
return new ItemsEnchantmentListPrompt(context);
|
||||
}
|
||||
}
|
||||
|
||||
public class EnchantAmountsPrompt extends QuestsEditorStringPrompt {
|
||||
public class ItemEnchantAmountsPrompt extends QuestsEditorStringPrompt {
|
||||
|
||||
public EnchantAmountsPrompt(ConversationContext context) {
|
||||
public ItemEnchantAmountsPrompt(ConversationContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@ -726,23 +726,23 @@ public class ItemsPrompt extends QuestsEditorNumericPrompt {
|
||||
} else {
|
||||
context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("invalidMinimum")
|
||||
.replace("<number>", "1"));
|
||||
return new EnchantAmountsPrompt(context);
|
||||
return new ItemEnchantAmountsPrompt(context);
|
||||
}
|
||||
} catch (NumberFormatException e) {
|
||||
context.getForWhom().sendRawMessage(ChatColor.LIGHT_PURPLE + s + " " + ChatColor.RED
|
||||
+ Lang.get("stageEditorNotListofNumbers"));
|
||||
return new EnchantAmountsPrompt(context);
|
||||
return new ItemEnchantAmountsPrompt(context);
|
||||
}
|
||||
}
|
||||
context.setSessionData(pref + CK.S_ENCHANT_AMOUNTS, amounts);
|
||||
}
|
||||
return new EnchantmentListPrompt(context);
|
||||
return new ItemsEnchantmentListPrompt(context);
|
||||
}
|
||||
}
|
||||
|
||||
public class BrewListPrompt extends QuestsEditorNumericPrompt {
|
||||
public class ItemsBrewListPrompt extends QuestsEditorNumericPrompt {
|
||||
|
||||
public BrewListPrompt(ConversationContext context) {
|
||||
public ItemsBrewListPrompt(ConversationContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@ -836,11 +836,11 @@ public class ItemsPrompt extends QuestsEditorNumericPrompt {
|
||||
protected Prompt acceptValidatedInput(ConversationContext context, Number input) {
|
||||
switch(input.intValue()) {
|
||||
case 1:
|
||||
return new ItemStackPrompt(BrewListPrompt.this);
|
||||
return new ItemStackPrompt(ItemsBrewListPrompt.this);
|
||||
case 2:
|
||||
context.getForWhom().sendRawMessage(ChatColor.YELLOW + Lang.get("stageEditorObjectiveCleared"));
|
||||
context.setSessionData(pref + CK.S_BREW_ITEMS, null);
|
||||
return new BrewListPrompt(context);
|
||||
return new ItemsBrewListPrompt(context);
|
||||
case 3:
|
||||
return new ItemsPrompt(stageNum, context);
|
||||
default:
|
||||
@ -849,9 +849,9 @@ public class ItemsPrompt extends QuestsEditorNumericPrompt {
|
||||
}
|
||||
}
|
||||
|
||||
public class ConsumeListPrompt extends QuestsEditorNumericPrompt {
|
||||
public class ItemsConsumeListPrompt extends QuestsEditorNumericPrompt {
|
||||
|
||||
public ConsumeListPrompt(ConversationContext context) {
|
||||
public ItemsConsumeListPrompt(ConversationContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@ -945,11 +945,11 @@ public class ItemsPrompt extends QuestsEditorNumericPrompt {
|
||||
protected Prompt acceptValidatedInput(ConversationContext context, Number input) {
|
||||
switch(input.intValue()) {
|
||||
case 1:
|
||||
return new ItemStackPrompt(ConsumeListPrompt.this);
|
||||
return new ItemStackPrompt(ItemsConsumeListPrompt.this);
|
||||
case 2:
|
||||
context.getForWhom().sendRawMessage(ChatColor.YELLOW + Lang.get("stageEditorObjectiveCleared"));
|
||||
context.setSessionData(pref + CK.S_CONSUME_ITEMS, null);
|
||||
return new ConsumeListPrompt(context);
|
||||
return new ItemsConsumeListPrompt(context);
|
||||
case 3:
|
||||
return new ItemsPrompt(stageNum, context);
|
||||
default:
|
||||
|
@ -197,15 +197,15 @@ public class MobsPrompt extends QuestsEditorNumericPrompt {
|
||||
protected Prompt acceptValidatedInput(ConversationContext context, Number input) {
|
||||
switch(input.intValue()) {
|
||||
case 1:
|
||||
return new MobListPrompt(context);
|
||||
return new MobsListPrompt(context);
|
||||
case 2:
|
||||
return new TameListPrompt(context);
|
||||
return new MobTameListPrompt(context);
|
||||
case 3:
|
||||
return new FishPrompt(context);
|
||||
return new MobFishPrompt(context);
|
||||
case 4:
|
||||
return new CowsPrompt(context);
|
||||
return new MobCowsPrompt(context);
|
||||
case 5:
|
||||
return new ShearListPrompt(context);
|
||||
return new MobShearListPrompt(context);
|
||||
case 6:
|
||||
try {
|
||||
return new StageMainPrompt(stageNum, context);
|
||||
@ -218,9 +218,9 @@ public class MobsPrompt extends QuestsEditorNumericPrompt {
|
||||
}
|
||||
}
|
||||
|
||||
public class MobListPrompt extends QuestsEditorNumericPrompt {
|
||||
public class MobsListPrompt extends QuestsEditorNumericPrompt {
|
||||
|
||||
public MobListPrompt(ConversationContext context) {
|
||||
public MobsListPrompt(ConversationContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@ -370,7 +370,7 @@ public class MobsPrompt extends QuestsEditorNumericPrompt {
|
||||
context.setSessionData(pref + CK.S_MOB_KILL_LOCATIONS, null);
|
||||
context.setSessionData(pref + CK.S_MOB_KILL_LOCATIONS_RADIUS, null);
|
||||
context.setSessionData(pref + CK.S_MOB_KILL_LOCATIONS_NAMES, null);
|
||||
return new MobListPrompt(context);
|
||||
return new MobsListPrompt(context);
|
||||
case 7:
|
||||
int one;
|
||||
int two;
|
||||
@ -408,14 +408,14 @@ public class MobsPrompt extends QuestsEditorNumericPrompt {
|
||||
return new StageMainPrompt(stageNum, context);
|
||||
} else {
|
||||
context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("listsNotSameSize"));
|
||||
return new MobListPrompt(context);
|
||||
return new MobsListPrompt(context);
|
||||
}
|
||||
} else {
|
||||
return new StageMainPrompt(stageNum, context);
|
||||
}
|
||||
} else {
|
||||
context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("listsNotSameSize"));
|
||||
return new MobListPrompt(context);
|
||||
return new MobsListPrompt(context);
|
||||
}
|
||||
default:
|
||||
return new MobsPrompt(stageNum, context);
|
||||
@ -480,7 +480,7 @@ public class MobsPrompt extends QuestsEditorNumericPrompt {
|
||||
}
|
||||
context.setSessionData(pref + CK.S_MOB_TYPES, mobTypes);
|
||||
}
|
||||
return new MobListPrompt(context);
|
||||
return new MobsListPrompt(context);
|
||||
}
|
||||
}
|
||||
|
||||
@ -529,7 +529,7 @@ public class MobsPrompt extends QuestsEditorNumericPrompt {
|
||||
}
|
||||
context.setSessionData(pref + CK.S_MOB_AMOUNTS, mobAmounts);
|
||||
}
|
||||
return new MobListPrompt(context);
|
||||
return new MobsListPrompt(context);
|
||||
}
|
||||
}
|
||||
|
||||
@ -580,12 +580,12 @@ public class MobsPrompt extends QuestsEditorNumericPrompt {
|
||||
player.sendMessage(ChatColor.RED + Lang.get("stageEditorNoBlock"));
|
||||
return new MobLocationPrompt(context);
|
||||
}
|
||||
return new MobListPrompt(context);
|
||||
return new MobsListPrompt(context);
|
||||
} else if (input.equalsIgnoreCase(Lang.get("cmdCancel"))) {
|
||||
Map<UUID, Block> temp = plugin.getQuestFactory().getSelectedKillLocations();
|
||||
temp.remove(player.getUniqueId());
|
||||
plugin.getQuestFactory().setSelectedKillLocations(temp);
|
||||
return new MobListPrompt(context);
|
||||
return new MobsListPrompt(context);
|
||||
} else {
|
||||
return new MobLocationPrompt(context);
|
||||
}
|
||||
@ -638,7 +638,7 @@ public class MobsPrompt extends QuestsEditorNumericPrompt {
|
||||
}
|
||||
context.setSessionData(pref + CK.S_MOB_KILL_LOCATIONS_RADIUS, radii);
|
||||
}
|
||||
return new MobListPrompt(context);
|
||||
return new MobsListPrompt(context);
|
||||
}
|
||||
}
|
||||
|
||||
@ -673,13 +673,13 @@ public class MobsPrompt extends QuestsEditorNumericPrompt {
|
||||
locNames.addAll(Arrays.asList(input.split(Lang.get("charSemi"))));
|
||||
context.setSessionData(pref + CK.S_MOB_KILL_LOCATIONS_NAMES, locNames);
|
||||
}
|
||||
return new MobListPrompt(context);
|
||||
return new MobsListPrompt(context);
|
||||
}
|
||||
}
|
||||
|
||||
public class FishPrompt extends QuestsEditorStringPrompt {
|
||||
public class MobFishPrompt extends QuestsEditorStringPrompt {
|
||||
|
||||
public FishPrompt(ConversationContext context) {
|
||||
public MobFishPrompt(ConversationContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@ -709,14 +709,14 @@ public class MobsPrompt extends QuestsEditorNumericPrompt {
|
||||
int i = Integer.parseInt(input);
|
||||
if (i < 0) {
|
||||
context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("stageEditorPositiveAmount"));
|
||||
return new FishPrompt(context);
|
||||
return new MobFishPrompt(context);
|
||||
} else if (i > 0) {
|
||||
context.setSessionData(pref + CK.S_FISH, i);
|
||||
}
|
||||
} catch (NumberFormatException e) {
|
||||
context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("reqNotANumber")
|
||||
.replace("<input>", input));
|
||||
return new FishPrompt(context);
|
||||
return new MobFishPrompt(context);
|
||||
}
|
||||
} else if (input.equalsIgnoreCase(Lang.get("cmdClear"))) {
|
||||
context.setSessionData(pref + CK.S_FISH, null);
|
||||
@ -725,9 +725,9 @@ public class MobsPrompt extends QuestsEditorNumericPrompt {
|
||||
}
|
||||
}
|
||||
|
||||
public class CowsPrompt extends QuestsEditorStringPrompt {
|
||||
public class MobCowsPrompt extends QuestsEditorStringPrompt {
|
||||
|
||||
public CowsPrompt(ConversationContext context) {
|
||||
public MobCowsPrompt(ConversationContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@ -757,14 +757,14 @@ public class MobsPrompt extends QuestsEditorNumericPrompt {
|
||||
int i = Integer.parseInt(input);
|
||||
if (i < 0) {
|
||||
context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("stageEditorPositiveAmount"));
|
||||
return new CowsPrompt(context);
|
||||
return new MobCowsPrompt(context);
|
||||
} else if (i > 0) {
|
||||
context.setSessionData(pref + CK.S_COW_MILK, i);
|
||||
}
|
||||
} catch (NumberFormatException e) {
|
||||
context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("reqNotANumber")
|
||||
.replace("<input>", input));
|
||||
return new CowsPrompt(context);
|
||||
return new MobCowsPrompt(context);
|
||||
}
|
||||
} else if (input.equalsIgnoreCase(Lang.get("cmdClear"))) {
|
||||
context.setSessionData(pref + CK.S_COW_MILK, null);
|
||||
@ -773,9 +773,9 @@ public class MobsPrompt extends QuestsEditorNumericPrompt {
|
||||
}
|
||||
}
|
||||
|
||||
public class TameListPrompt extends QuestsEditorNumericPrompt {
|
||||
public class MobTameListPrompt extends QuestsEditorNumericPrompt {
|
||||
|
||||
public TameListPrompt(ConversationContext context) {
|
||||
public MobTameListPrompt(ConversationContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@ -867,14 +867,14 @@ public class MobsPrompt extends QuestsEditorNumericPrompt {
|
||||
protected Prompt acceptValidatedInput(ConversationContext context, Number input) {
|
||||
switch(input.intValue()) {
|
||||
case 1:
|
||||
return new TameTypesPrompt(context);
|
||||
return new MobTameTypesPrompt(context);
|
||||
case 2:
|
||||
return new TameAmountsPrompt(context);
|
||||
return new MobTameAmountsPrompt(context);
|
||||
case 3:
|
||||
context.getForWhom().sendRawMessage(ChatColor.YELLOW + Lang.get("stageEditorObjectiveCleared"));
|
||||
context.setSessionData(pref + CK.S_TAME_TYPES, null);
|
||||
context.setSessionData(pref + CK.S_TAME_AMOUNTS, null);
|
||||
return new TameListPrompt(context);
|
||||
return new MobTameListPrompt(context);
|
||||
case 4:
|
||||
int one;
|
||||
int two;
|
||||
@ -892,7 +892,7 @@ public class MobsPrompt extends QuestsEditorNumericPrompt {
|
||||
return new StageMainPrompt(stageNum, context);
|
||||
} else {
|
||||
context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("listsNotSameSize"));
|
||||
return new TameListPrompt(context);
|
||||
return new MobTameListPrompt(context);
|
||||
}
|
||||
default:
|
||||
return new MobsPrompt(stageNum, context);
|
||||
@ -900,9 +900,9 @@ public class MobsPrompt extends QuestsEditorNumericPrompt {
|
||||
}
|
||||
}
|
||||
|
||||
public class TameTypesPrompt extends QuestsEditorStringPrompt {
|
||||
public class MobTameTypesPrompt extends QuestsEditorStringPrompt {
|
||||
|
||||
public TameTypesPrompt(ConversationContext context) {
|
||||
public MobTameTypesPrompt(ConversationContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@ -948,22 +948,22 @@ public class MobsPrompt extends QuestsEditorNumericPrompt {
|
||||
} else {
|
||||
player.sendMessage(ChatColor.LIGHT_PURPLE + s + " " + ChatColor.RED
|
||||
+ Lang.get("stageEditorInvalidMob"));
|
||||
return new TameTypesPrompt(context);
|
||||
return new MobTameTypesPrompt(context);
|
||||
}
|
||||
} else {
|
||||
player.sendMessage(ChatColor.LIGHT_PURPLE + s + " " + ChatColor.RED
|
||||
+ Lang.get("stageEditorInvalidMob"));
|
||||
return new TameTypesPrompt(context);
|
||||
return new MobTameTypesPrompt(context);
|
||||
}
|
||||
}
|
||||
}
|
||||
return new TameListPrompt(context);
|
||||
return new MobTameListPrompt(context);
|
||||
}
|
||||
}
|
||||
|
||||
public class TameAmountsPrompt extends QuestsEditorStringPrompt {
|
||||
public class MobTameAmountsPrompt extends QuestsEditorStringPrompt {
|
||||
|
||||
public TameAmountsPrompt(ConversationContext context) {
|
||||
public MobTameAmountsPrompt(ConversationContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@ -996,24 +996,24 @@ public class MobsPrompt extends QuestsEditorNumericPrompt {
|
||||
if (i < 1) {
|
||||
context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("invalidMinimum")
|
||||
.replace("<number>", "1"));
|
||||
return new TameAmountsPrompt(context);
|
||||
return new MobTameAmountsPrompt(context);
|
||||
}
|
||||
mobAmounts.add(i);
|
||||
} catch (NumberFormatException e) {
|
||||
player.sendMessage(ChatColor.RED + Lang.get("reqNotANumber")
|
||||
.replace("<input>", input));
|
||||
return new TameAmountsPrompt(context);
|
||||
return new MobTameAmountsPrompt(context);
|
||||
}
|
||||
}
|
||||
context.setSessionData(pref + CK.S_TAME_AMOUNTS, mobAmounts);
|
||||
}
|
||||
return new TameListPrompt(context);
|
||||
return new MobTameListPrompt(context);
|
||||
}
|
||||
}
|
||||
|
||||
public class ShearListPrompt extends QuestsEditorNumericPrompt {
|
||||
public class MobShearListPrompt extends QuestsEditorNumericPrompt {
|
||||
|
||||
public ShearListPrompt(ConversationContext context) {
|
||||
public MobShearListPrompt(ConversationContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@ -1105,14 +1105,14 @@ public class MobsPrompt extends QuestsEditorNumericPrompt {
|
||||
protected Prompt acceptValidatedInput(ConversationContext context, Number input) {
|
||||
switch(input.intValue()) {
|
||||
case 1:
|
||||
return new ShearColorsPrompt(context);
|
||||
return new MobShearColorsPrompt(context);
|
||||
case 2:
|
||||
return new ShearAmountsPrompt(context);
|
||||
return new MobShearAmountsPrompt(context);
|
||||
case 3:
|
||||
context.getForWhom().sendRawMessage(ChatColor.YELLOW + Lang.get("stageEditorObjectiveCleared"));
|
||||
context.setSessionData(pref + CK.S_SHEAR_COLORS, null);
|
||||
context.setSessionData(pref + CK.S_SHEAR_AMOUNTS, null);
|
||||
return new ShearListPrompt(context);
|
||||
return new MobShearListPrompt(context);
|
||||
case 4:
|
||||
int one;
|
||||
int two;
|
||||
@ -1130,7 +1130,7 @@ public class MobsPrompt extends QuestsEditorNumericPrompt {
|
||||
return new StageMainPrompt(stageNum, context);
|
||||
} else {
|
||||
context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("listsNotSameSize"));
|
||||
return new ShearListPrompt(context);
|
||||
return new MobShearListPrompt(context);
|
||||
}
|
||||
default:
|
||||
return new MobsPrompt(stageNum, context);
|
||||
@ -1138,9 +1138,9 @@ public class MobsPrompt extends QuestsEditorNumericPrompt {
|
||||
}
|
||||
}
|
||||
|
||||
public class ShearColorsPrompt extends QuestsEditorStringPrompt {
|
||||
public class MobShearColorsPrompt extends QuestsEditorStringPrompt {
|
||||
|
||||
public ShearColorsPrompt(ConversationContext context) {
|
||||
public MobShearColorsPrompt(ConversationContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@ -1183,17 +1183,17 @@ public class MobsPrompt extends QuestsEditorNumericPrompt {
|
||||
} else {
|
||||
player.sendMessage(ChatColor.LIGHT_PURPLE + s + " " + ChatColor.RED
|
||||
+ Lang.get("stageEditorInvalidDye"));
|
||||
return new ShearColorsPrompt(context);
|
||||
return new MobShearColorsPrompt(context);
|
||||
}
|
||||
}
|
||||
}
|
||||
return new ShearListPrompt(context);
|
||||
return new MobShearListPrompt(context);
|
||||
}
|
||||
}
|
||||
|
||||
public class ShearAmountsPrompt extends QuestsEditorStringPrompt {
|
||||
public class MobShearAmountsPrompt extends QuestsEditorStringPrompt {
|
||||
|
||||
public ShearAmountsPrompt(ConversationContext context) {
|
||||
public MobShearAmountsPrompt(ConversationContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@ -1226,17 +1226,17 @@ public class MobsPrompt extends QuestsEditorNumericPrompt {
|
||||
if (i < 1) {
|
||||
context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("invalidMinimum")
|
||||
.replace("<number>", "1"));
|
||||
return new ShearAmountsPrompt(context);
|
||||
return new MobShearAmountsPrompt(context);
|
||||
}
|
||||
shearAmounts.add(i);
|
||||
} catch (NumberFormatException e) {
|
||||
player.sendMessage(ChatColor.RED + Lang.get("reqNotANumber").replace("<input>", input));
|
||||
return new ShearAmountsPrompt(context);
|
||||
return new MobShearAmountsPrompt(context);
|
||||
}
|
||||
}
|
||||
context.setSessionData(pref + CK.S_SHEAR_AMOUNTS, shearAmounts);
|
||||
}
|
||||
return new ShearListPrompt(context);
|
||||
return new MobShearListPrompt(context);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -34,12 +34,12 @@ import me.blackvein.quests.util.CK;
|
||||
import me.blackvein.quests.util.ItemUtil;
|
||||
import me.blackvein.quests.util.Lang;
|
||||
|
||||
public class NPCsPrompt extends QuestsEditorNumericPrompt {
|
||||
public class NpcsPrompt extends QuestsEditorNumericPrompt {
|
||||
private final Quests plugin;
|
||||
private final int stageNum;
|
||||
private final String pref;
|
||||
|
||||
public NPCsPrompt(int stageNum, ConversationContext context) {
|
||||
public NpcsPrompt(int stageNum, ConversationContext context) {
|
||||
super(context);
|
||||
this.plugin = (Quests)context.getPlugin();
|
||||
this.stageNum = stageNum;
|
||||
@ -172,21 +172,21 @@ public class NPCsPrompt extends QuestsEditorNumericPrompt {
|
||||
switch(input.intValue()) {
|
||||
case 1:
|
||||
if (plugin.getDependencies().getCitizens() != null) {
|
||||
return new DeliveryListPrompt(context);
|
||||
return new NpcsDeliveryListPrompt(context);
|
||||
} else {
|
||||
context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("stageEditorNoCitizens"));
|
||||
return new StageMainPrompt(stageNum, context);
|
||||
}
|
||||
case 2:
|
||||
if (plugin.getDependencies().getCitizens() != null) {
|
||||
return new NPCIDsToTalkToPrompt(context);
|
||||
return new NpcsIdsToTalkToPrompt(context);
|
||||
} else {
|
||||
context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("stageEditorNoCitizens"));
|
||||
return new StageMainPrompt(stageNum, context);
|
||||
}
|
||||
case 3:
|
||||
if (plugin.getDependencies().getCitizens() != null) {
|
||||
return new NPCKillListPrompt(context);
|
||||
return new NpcsKillListPrompt(context);
|
||||
} else {
|
||||
context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("stageEditorNoCitizens"));
|
||||
return new StageMainPrompt(stageNum, context);
|
||||
@ -199,13 +199,13 @@ public class NPCsPrompt extends QuestsEditorNumericPrompt {
|
||||
return Prompt.END_OF_CONVERSATION;
|
||||
}
|
||||
default:
|
||||
return new NPCsPrompt(stageNum, context);
|
||||
return new NpcsPrompt(stageNum, context);
|
||||
}
|
||||
}
|
||||
|
||||
public class DeliveryListPrompt extends QuestsEditorNumericPrompt {
|
||||
public class NpcsDeliveryListPrompt extends QuestsEditorNumericPrompt {
|
||||
|
||||
public DeliveryListPrompt(ConversationContext context) {
|
||||
public NpcsDeliveryListPrompt(ConversationContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@ -327,17 +327,17 @@ public class NPCsPrompt extends QuestsEditorNumericPrompt {
|
||||
protected Prompt acceptValidatedInput(ConversationContext context, Number input) {
|
||||
switch(input.intValue()) {
|
||||
case 1:
|
||||
return new ItemStackPrompt(DeliveryListPrompt.this);
|
||||
return new ItemStackPrompt(NpcsDeliveryListPrompt.this);
|
||||
case 2:
|
||||
return new DeliveryNPCsPrompt(context);
|
||||
return new NpcDeliveryNpcsPrompt(context);
|
||||
case 3:
|
||||
return new DeliveryMessagesPrompt(context);
|
||||
return new NpcDeliveryMessagesPrompt(context);
|
||||
case 4:
|
||||
context.getForWhom().sendRawMessage(ChatColor.YELLOW + Lang.get("Cleared"));
|
||||
context.setSessionData(pref + CK.S_DELIVERY_ITEMS, null);
|
||||
context.setSessionData(pref + CK.S_DELIVERY_NPCS, null);
|
||||
context.setSessionData(pref + CK.S_DELIVERY_MESSAGES, null);
|
||||
return new DeliveryListPrompt(context);
|
||||
return new NpcsDeliveryListPrompt(context);
|
||||
case 5:
|
||||
int one;
|
||||
int two;
|
||||
@ -354,23 +354,23 @@ public class NPCsPrompt extends QuestsEditorNumericPrompt {
|
||||
if (one == two) {
|
||||
if (context.getSessionData(pref + CK.S_DELIVERY_MESSAGES) == null && one != 0) {
|
||||
context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("stageEditorNoDeliveryMessage"));
|
||||
return new DeliveryListPrompt(context);
|
||||
return new NpcsDeliveryListPrompt(context);
|
||||
} else {
|
||||
return new NPCsPrompt(stageNum, context);
|
||||
return new NpcsPrompt(stageNum, context);
|
||||
}
|
||||
} else {
|
||||
context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("listsNotSameSize"));
|
||||
return new DeliveryListPrompt(context);
|
||||
return new NpcsDeliveryListPrompt(context);
|
||||
}
|
||||
default:
|
||||
return new NPCsPrompt(stageNum, context);
|
||||
return new NpcsPrompt(stageNum, context);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public class DeliveryNPCsPrompt extends QuestsEditorStringPrompt {
|
||||
public class NpcDeliveryNpcsPrompt extends QuestsEditorStringPrompt {
|
||||
|
||||
public DeliveryNPCsPrompt(ConversationContext context) {
|
||||
public NpcDeliveryNpcsPrompt(ConversationContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@ -405,12 +405,12 @@ public class NPCsPrompt extends QuestsEditorNumericPrompt {
|
||||
} else {
|
||||
context.getForWhom().sendRawMessage(ChatColor.LIGHT_PURPLE + "" + i + ChatColor.RED + " "
|
||||
+ Lang.get("stageEditorInvalidNPC"));
|
||||
return new DeliveryNPCsPrompt(context);
|
||||
return new NpcDeliveryNpcsPrompt(context);
|
||||
}
|
||||
} catch (NumberFormatException e) {
|
||||
context.getForWhom().sendRawMessage(ChatColor.LIGHT_PURPLE + s + " " + ChatColor.RED
|
||||
+ Lang.get("stageEditorNotListofNumbers"));
|
||||
return new DeliveryNPCsPrompt(context);
|
||||
return new NpcDeliveryNpcsPrompt(context);
|
||||
}
|
||||
}
|
||||
context.setSessionData(pref + CK.S_DELIVERY_NPCS, npcs);
|
||||
@ -418,13 +418,13 @@ public class NPCsPrompt extends QuestsEditorNumericPrompt {
|
||||
Set<UUID> temp = plugin.getQuestFactory().getSelectingNpcs();
|
||||
temp.remove(((Player) context.getForWhom()).getUniqueId());
|
||||
plugin.getQuestFactory().setSelectingNpcs(temp);
|
||||
return new DeliveryListPrompt(context);
|
||||
return new NpcsDeliveryListPrompt(context);
|
||||
}
|
||||
}
|
||||
|
||||
public class DeliveryMessagesPrompt extends QuestsEditorStringPrompt {
|
||||
public class NpcDeliveryMessagesPrompt extends QuestsEditorStringPrompt {
|
||||
|
||||
public DeliveryMessagesPrompt(ConversationContext context) {
|
||||
public NpcDeliveryMessagesPrompt(ConversationContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@ -450,13 +450,13 @@ public class NPCsPrompt extends QuestsEditorNumericPrompt {
|
||||
messages.addAll(Arrays.asList(args));
|
||||
context.setSessionData(pref + CK.S_DELIVERY_MESSAGES, messages);
|
||||
}
|
||||
return new DeliveryListPrompt(context);
|
||||
return new NpcsDeliveryListPrompt(context);
|
||||
}
|
||||
}
|
||||
|
||||
public class NPCIDsToTalkToPrompt extends QuestsEditorStringPrompt {
|
||||
public class NpcsIdsToTalkToPrompt extends QuestsEditorStringPrompt {
|
||||
|
||||
public NPCIDsToTalkToPrompt(ConversationContext context) {
|
||||
public NpcsIdsToTalkToPrompt(ConversationContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@ -493,12 +493,12 @@ public class NPCsPrompt extends QuestsEditorNumericPrompt {
|
||||
} else {
|
||||
context.getForWhom().sendRawMessage(ChatColor.LIGHT_PURPLE + "" + i + ChatColor.RED + " "
|
||||
+ Lang.get("stageEditorInvalidNPC"));
|
||||
return new NPCIDsToTalkToPrompt(context);
|
||||
return new NpcsIdsToTalkToPrompt(context);
|
||||
}
|
||||
} catch (NumberFormatException e) {
|
||||
context.getForWhom().sendRawMessage(ChatColor.LIGHT_PURPLE + s + " " + ChatColor.RED
|
||||
+ Lang.get("stageEditorNotListofNumbers"));
|
||||
return new NPCIDsToTalkToPrompt(context);
|
||||
return new NpcsIdsToTalkToPrompt(context);
|
||||
}
|
||||
}
|
||||
Set<UUID> temp = plugin.getQuestFactory().getSelectingNpcs();
|
||||
@ -512,9 +512,9 @@ public class NPCsPrompt extends QuestsEditorNumericPrompt {
|
||||
}
|
||||
}
|
||||
|
||||
public class NPCKillListPrompt extends QuestsEditorNumericPrompt {
|
||||
public class NpcsKillListPrompt extends QuestsEditorNumericPrompt {
|
||||
|
||||
public NPCKillListPrompt(ConversationContext context) {
|
||||
public NpcsKillListPrompt(ConversationContext context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@ -619,7 +619,7 @@ public class NPCsPrompt extends QuestsEditorNumericPrompt {
|
||||
context.getForWhom().sendRawMessage(ChatColor.YELLOW + Lang.get("stageEditorObjectiveCleared"));
|
||||
context.setSessionData(pref + CK.S_NPCS_TO_KILL, null);
|
||||
context.setSessionData(pref + CK.S_NPCS_TO_KILL_AMOUNTS, null);
|
||||
return new NPCKillListPrompt(context);
|
||||
return new NpcsKillListPrompt(context);
|
||||
case 4:
|
||||
int one;
|
||||
int two;
|
||||
@ -637,10 +637,10 @@ public class NPCsPrompt extends QuestsEditorNumericPrompt {
|
||||
return new StageMainPrompt(stageNum, context);
|
||||
} else {
|
||||
context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("listsNotSameSize"));
|
||||
return new NPCKillListPrompt(context);
|
||||
return new NpcsKillListPrompt(context);
|
||||
}
|
||||
default:
|
||||
return new NPCsPrompt(stageNum, context);
|
||||
return new NpcsPrompt(stageNum, context);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -695,7 +695,7 @@ public class NPCsPrompt extends QuestsEditorNumericPrompt {
|
||||
Set<UUID> temp = plugin.getQuestFactory().getSelectingNpcs();
|
||||
temp.remove(((Player) context.getForWhom()).getUniqueId());
|
||||
plugin.getQuestFactory().setSelectingNpcs(temp);
|
||||
return new NPCKillListPrompt(context);
|
||||
return new NpcsKillListPrompt(context);
|
||||
}
|
||||
}
|
||||
|
||||
@ -742,7 +742,7 @@ public class NPCsPrompt extends QuestsEditorNumericPrompt {
|
||||
}
|
||||
context.setSessionData(pref + CK.S_NPCS_TO_KILL_AMOUNTS, amounts);
|
||||
}
|
||||
return new NPCKillListPrompt(context);
|
||||
return new NpcsKillListPrompt(context);
|
||||
}
|
||||
}
|
||||
}
|
@ -37,7 +37,7 @@ import me.blackvein.quests.convo.quests.QuestsEditorNumericPrompt;
|
||||
import me.blackvein.quests.convo.quests.objectives.BlocksPrompt;
|
||||
import me.blackvein.quests.convo.quests.objectives.ItemsPrompt;
|
||||
import me.blackvein.quests.convo.quests.objectives.MobsPrompt;
|
||||
import me.blackvein.quests.convo.quests.objectives.NPCsPrompt;
|
||||
import me.blackvein.quests.convo.quests.objectives.NpcsPrompt;
|
||||
import me.blackvein.quests.events.editor.quests.QuestsEditorPostOpenNumericPromptEvent;
|
||||
import me.blackvein.quests.util.CK;
|
||||
import me.blackvein.quests.util.ConfigUtil;
|
||||
@ -435,7 +435,7 @@ public class StageMainPrompt extends QuestsEditorNumericPrompt {
|
||||
case 2:
|
||||
return new ItemsPrompt(stageNum, context);
|
||||
case 3:
|
||||
return new NPCsPrompt(stageNum, context);
|
||||
return new NpcsPrompt(stageNum, context);
|
||||
case 4:
|
||||
return new MobsPrompt(stageNum, context);
|
||||
case 5:
|
||||
|
Loading…
Reference in New Issue
Block a user