(UNSTABLE) Lang corrections, reduce duplicate strings - part 2

This commit is contained in:
HappyPikachu 2018-01-31 01:47:29 -05:00
parent 109b0afdea
commit 03701fc230
10 changed files with 197 additions and 186 deletions

View File

@ -50,8 +50,8 @@ public class Event {
int stormDuration = 0; int stormDuration = 0;
World thunderWorld = null; World thunderWorld = null;
int thunderDuration = 0; int thunderDuration = 0;
Integer timer = 0; int timer = 0;
Boolean cancelTimer = false; boolean cancelTimer = false;
public LinkedList<QuestMob> mobSpawns = new LinkedList<QuestMob>() { public LinkedList<QuestMob> mobSpawns = new LinkedList<QuestMob>() {
private static final long serialVersionUID = -761974607799449780L; private static final long serialVersionUID = -761974607799449780L;
@ -252,7 +252,7 @@ public class Event {
quest.failQuest(quester); quest.failQuest(quester);
} }
if (timer > 0) { if (timer > 0) {
player.sendMessage(Quests.parseString(String.format(Lang.get("timerStart"), timer), quest)); player.sendMessage(Lang.get("timerStart").replaceAll("<time>", String.valueOf(timer)));
if (timer > 60) { if (timer > 60) {
quester.timers.put(new ObjectiveTimer(plugin, quester, quest, 60, false) quester.timers.put(new ObjectiveTimer(plugin, quester, quest, 60, false)
.runTaskLaterAsynchronously(plugin, (timer-60)*20).getTaskId(), quest); .runTaskLaterAsynchronously(plugin, (timer-60)*20).getTaskId(), quest);

View File

@ -282,7 +282,7 @@ public class EventFactory implements ConversationAbandonedListener {
text += ChatColor.AQUA + evt.name + ChatColor.YELLOW + ", "; text += ChatColor.AQUA + evt.name + ChatColor.YELLOW + ", ";
} }
text = text.substring(0, text.length() - 2) + "\n"; text = text.substring(0, text.length() - 2) + "\n";
text += ChatColor.YELLOW + Lang.get("eventEditorEnterEventName") + Lang.orCancelToReturn; text += ChatColor.YELLOW + Lang.get("eventEditorEnterEventName");
return text; return text;
} }
@ -314,7 +314,7 @@ public class EventFactory implements ConversationAbandonedListener {
text += ChatColor.AQUA + evt.name + ChatColor.YELLOW + ","; text += ChatColor.AQUA + evt.name + ChatColor.YELLOW + ",";
} }
text = text.substring(0, text.length() - 1) + "\n"; text = text.substring(0, text.length() - 1) + "\n";
text += ChatColor.YELLOW + Lang.get("eventEditorEnterEventName") + Lang.orCancelToReturn; text += ChatColor.YELLOW + Lang.get("eventEditorEnterEventName");
return text; return text;
} }
@ -905,7 +905,7 @@ public class EventFactory implements ConversationAbandonedListener {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
String text = ChatColor.AQUA + Lang.get("eventEditorCreate") + ChatColor.GOLD + " - " String text = ChatColor.AQUA + Lang.get("eventEditorCreate") + ChatColor.GOLD + " - "
+ Lang.get("eventEditorEnterEventName") + Lang.orCancelToReturn; + Lang.get("eventEditorEnterEventName");
return text; return text;
} }
@ -960,7 +960,7 @@ public class EventFactory implements ConversationAbandonedListener {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
return ChatColor.YELLOW + Lang.get("eventEditorExplosionPrompt") + Lang.orCancelToReturn; return ChatColor.YELLOW + Lang.get("eventEditorExplosionPrompt");
} }
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
@ -1002,7 +1002,7 @@ public class EventFactory implements ConversationAbandonedListener {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
return ChatColor.YELLOW + Lang.get("eventEditorEnterEventName") + Lang.orCancelToReturn; return ChatColor.YELLOW + Lang.get("eventEditorEnterEventName");
} }
@Override @Override
@ -1034,7 +1034,7 @@ public class EventFactory implements ConversationAbandonedListener {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
return ChatColor.YELLOW + Lang.get("eventEditorSetMessagePrompt") + "(" + Lang.orCancelToReturn + ")"; return ChatColor.YELLOW + Lang.get("eventEditorSetMessagePrompt");
} }
@Override @Override
@ -1194,7 +1194,7 @@ public class EventFactory implements ConversationAbandonedListener {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
return ChatColor.YELLOW + Lang.get("eventEditorEffectLocationPrompt") + Lang.orCancelToReturn; return ChatColor.YELLOW + Lang.get("eventEditorEffectLocationPrompt");
} }
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
@ -1243,7 +1243,7 @@ public class EventFactory implements ConversationAbandonedListener {
effects += ChatColor.DARK_PURPLE + "GHAST_SHRIEK " + ChatColor.GRAY + "- " + Lang.get("effGhastShriek") + "\n"; effects += ChatColor.DARK_PURPLE + "GHAST_SHRIEK " + ChatColor.GRAY + "- " + Lang.get("effGhastShriek") + "\n";
effects += ChatColor.DARK_PURPLE + "ZOMBIE_CHEW_IRON_DOOR " + ChatColor.GRAY + "- " + Lang.get("effZombieWood") + "\n"; effects += ChatColor.DARK_PURPLE + "ZOMBIE_CHEW_IRON_DOOR " + ChatColor.GRAY + "- " + Lang.get("effZombieWood") + "\n";
effects += ChatColor.DARK_PURPLE + "ZOMBIE_CHEW_WOODEN_DOOR " + ChatColor.GRAY + "- " + Lang.get("effZombieIron") + "\n"; effects += ChatColor.DARK_PURPLE + "ZOMBIE_CHEW_WOODEN_DOOR " + ChatColor.GRAY + "- " + Lang.get("effZombieIron") + "\n";
return ChatColor.YELLOW + effects + Lang.get("effEnterName") + Lang.orCancelToReturn; return ChatColor.YELLOW + effects + Lang.get("effEnterName");
} }
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
@ -1338,7 +1338,7 @@ public class EventFactory implements ConversationAbandonedListener {
effects += w.getName() + ", "; effects += w.getName() + ", ";
} }
effects = effects.substring(0, effects.length()); effects = effects.substring(0, effects.length());
return ChatColor.YELLOW + effects + Lang.get("eventEditorEnterStormWorld") + Lang.orCancelToReturn; return ChatColor.YELLOW + effects + Lang.get("eventEditorEnterStormWorld");
} }
@Override @Override
@ -1439,7 +1439,7 @@ public class EventFactory implements ConversationAbandonedListener {
effects += w.getName() + ", "; effects += w.getName() + ", ";
} }
effects = effects.substring(0, effects.length()); effects = effects.substring(0, effects.length());
return ChatColor.YELLOW + effects + Lang.get("eventEditorEnterThunderWorld") + Lang.orCancelToReturn; return ChatColor.YELLOW + effects + Lang.get("eventEditorEnterThunderWorld");
} }
@Override @Override
@ -1666,7 +1666,7 @@ public class EventFactory implements ConversationAbandonedListener {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
String text = ChatColor.YELLOW + Lang.get("eventEditorSetMobNamePrompt") + Lang.orCancelToReturn; String text = ChatColor.YELLOW + Lang.get("eventEditorSetMobNamePrompt");
return text; return text;
} }
@ -1710,7 +1710,7 @@ public class EventFactory implements ConversationAbandonedListener {
mobs += MiscUtil.getProperMobName(mobArr[i]) + "\n"; mobs += MiscUtil.getProperMobName(mobArr[i]) + "\n";
} }
} }
return mobs + ChatColor.YELLOW + Lang.get("eventEditorSetMobTypesPrompt") + Lang.orCancelToReturn; return mobs + ChatColor.YELLOW + Lang.get("eventEditorSetMobTypesPrompt");
} }
@Override @Override
@ -1740,7 +1740,7 @@ public class EventFactory implements ConversationAbandonedListener {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
return ChatColor.YELLOW + Lang.get("eventEditorSetMobAmountsPrompt") + Lang.orCancelToReturn; return ChatColor.YELLOW + Lang.get("eventEditorSetMobAmountsPrompt");
} }
@Override @Override
@ -1776,7 +1776,7 @@ public class EventFactory implements ConversationAbandonedListener {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
return ChatColor.YELLOW + Lang.get("eventEditorSetMobLocationPrompt") + Lang.orCancelToReturn; return ChatColor.YELLOW + Lang.get("eventEditorSetMobLocationPrompt");
} }
@Override @Override
@ -1845,7 +1845,7 @@ public class EventFactory implements ConversationAbandonedListener {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
return ChatColor.YELLOW + Lang.get("eventEditorLightningPrompt") + Lang.orCancelToReturn; return ChatColor.YELLOW + Lang.get("eventEditorLightningPrompt");
} }
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
@ -1993,7 +1993,7 @@ public class EventFactory implements ConversationAbandonedListener {
for (PotionEffectType pet : PotionEffectType.values()) { for (PotionEffectType pet : PotionEffectType.values()) {
effs += (pet != null && pet.getName() != null) ? (ChatColor.DARK_PURPLE + pet.getName() + "\n") : ""; effs += (pet != null && pet.getName() != null) ? (ChatColor.DARK_PURPLE + pet.getName() + "\n") : "";
} }
return effs + ChatColor.YELLOW + Lang.get("eventEditorSetPotionEffectsPrompt") + Lang.orCancelToReturn; return effs + ChatColor.YELLOW + Lang.get("eventEditorSetPotionEffectsPrompt");
} }
@Override @Override
@ -2019,7 +2019,7 @@ public class EventFactory implements ConversationAbandonedListener {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
return ChatColor.YELLOW + Lang.get("eventEditorSetPotionDurationsPrompt") + Lang.orCancelToReturn; return ChatColor.YELLOW + Lang.get("eventEditorSetPotionDurationsPrompt");
} }
@Override @Override
@ -2051,7 +2051,7 @@ public class EventFactory implements ConversationAbandonedListener {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
return ChatColor.YELLOW + Lang.get("eventEditorSetPotionMagnitudesPrompt") + Lang.orCancelToReturn; return ChatColor.YELLOW + Lang.get("eventEditorSetPotionMagnitudesPrompt");
} }
@Override @Override
@ -2151,7 +2151,7 @@ public class EventFactory implements ConversationAbandonedListener {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
return ChatColor.YELLOW + Lang.get("eventEditorSetTeleportPrompt") + Lang.orCancelToReturn; return ChatColor.YELLOW + Lang.get("eventEditorSetTeleportPrompt");
} }
@Override @Override
@ -2186,7 +2186,7 @@ public class EventFactory implements ConversationAbandonedListener {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
String text = ChatColor.GOLD + "" + ChatColor.ITALIC + Lang.get("eventEditorCommandsNote"); String text = ChatColor.GOLD + "" + ChatColor.ITALIC + Lang.get("eventEditorCommandsNote");
return ChatColor.YELLOW + Lang.get("eventEditorSetCommandsPrompt") + Lang.orCancelToReturn + "\n" + text; return ChatColor.YELLOW + Lang.get("eventEditorSetCommandsPrompt") + "\n" + text;
} }
@Override @Override

View File

@ -39,7 +39,7 @@ public class ObjectiveTimer extends BukkitRunnable {
quest.failQuest(quester); quest.failQuest(quester);
quester.updateJournal(); quester.updateJournal();
} else { } else {
quester.getPlayer().sendMessage(Quests.parseString(String.format(Lang.get("timerMessage"), time), quest)); quester.getPlayer().sendMessage(Lang.get("timerMessage").replaceAll("<time>", String.valueOf(time)));
} }
} }
} }

View File

@ -351,7 +351,7 @@ public class QuestFactory implements ConversationAbandonedListener {
for (Quest q : quests.getQuests()) { for (Quest q : quests.getQuests()) {
s += ChatColor.GRAY + "- " + ChatColor.YELLOW + q.getName() + "\n"; s += ChatColor.GRAY + "- " + ChatColor.YELLOW + q.getName() + "\n";
} }
return s + ChatColor.GOLD + Lang.get("questEditorEditEnterQuestName") + " (" + Lang.orCancelToReturn + ")"; return s + ChatColor.GOLD + Lang.get("questEditorEditEnterQuestName");
} }
@Override @Override
@ -388,7 +388,7 @@ public class QuestFactory implements ConversationAbandonedListener {
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
String text = ChatColor.GOLD + Lang.get("questCreateTitle") + "\n"; String text = ChatColor.GOLD + Lang.get("questCreateTitle") + "\n";
text += ChatColor.AQUA + Lang.get("questEditorCreate") + " " + ChatColor.GOLD + "- " text += ChatColor.AQUA + Lang.get("questEditorCreate") + " " + ChatColor.GOLD + "- "
+ Lang.get("questEditorEnterQuestName") + " (" + Lang.orCancelToReturn + ")"; + Lang.get("questEditorEnterQuestName");
return text; return text;
} }
@ -454,7 +454,7 @@ public class QuestFactory implements ConversationAbandonedListener {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
return ChatColor.YELLOW + Lang.get("questEditorEnterBlockStart") + Lang.orCancelToReturn; return ChatColor.YELLOW + Lang.get("questEditorEnterBlockStart");
} }
@Override @Override
@ -488,7 +488,7 @@ public class QuestFactory implements ConversationAbandonedListener {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
return ChatColor.YELLOW + Lang.get("questEditorEnterQuestName") + " (" + Lang.orCancelToReturn + ")"; return ChatColor.YELLOW + Lang.get("questEditorEnterQuestName");
} }
@Override @Override
@ -526,7 +526,7 @@ public class QuestFactory implements ConversationAbandonedListener {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
return ChatColor.YELLOW + Lang.get("questEditorEnterAskMessage") + " (" + Lang.orCancelToReturn + ")"; return ChatColor.YELLOW + Lang.get("questEditorEnterAskMessage");
} }
@Override @Override
@ -548,7 +548,7 @@ public class QuestFactory implements ConversationAbandonedListener {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
return ChatColor.YELLOW + Lang.get("questEditorEnterFinishMessage") + " (" + Lang.orCancelToReturn + ")"; return ChatColor.YELLOW + Lang.get("questEditorEnterFinishMessage");
} }
@Override @Override
@ -578,7 +578,7 @@ public class QuestFactory implements ConversationAbandonedListener {
text += ChatColor.GREEN + "- " + e.getName() + "\n"; text += ChatColor.GREEN + "- " + e.getName() + "\n";
} }
} }
return text + ChatColor.YELLOW + Lang.get("questEditorEnterInitialEvent" + Lang.orCancelToReturn); return text + ChatColor.YELLOW + Lang.get("questEditorEnterInitialEvent");
} }
@Override @Override
@ -682,7 +682,7 @@ public class QuestFactory implements ConversationAbandonedListener {
} else { } else {
text += ChatColor.GRAY + "(" + Lang.get("none") + ")\n\n"; text += ChatColor.GRAY + "(" + Lang.get("none") + ")\n\n";
} }
return text + ChatColor.YELLOW + Lang.get("questWGPrompt") + Lang.orCancelToReturn; return text + ChatColor.YELLOW + Lang.get("questWGPrompt");
} }
@Override @Override

View File

@ -481,7 +481,7 @@ public class CreateStagePrompt extends FixedSetPrompt {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
String text = ChatColor.YELLOW + Lang.get("stageEditorPasswordDisplayPrompt") + Lang.orCancelToReturn + "\n"; String text = ChatColor.YELLOW + Lang.get("stageEditorPasswordDisplayPrompt") + "\n";
text += ChatColor.ITALIC + "" + ChatColor.GOLD + Lang.get("stageEditorPasswordDisplayHint"); text += ChatColor.ITALIC + "" + ChatColor.GOLD + Lang.get("stageEditorPasswordDisplayHint");
return text; return text;
} }
@ -508,7 +508,7 @@ public class CreateStagePrompt extends FixedSetPrompt {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
String text = ChatColor.YELLOW + Lang.get("stageEditorPasswordPhrasePrompt") + Lang.orCancelToReturn + "\n"; String text = ChatColor.YELLOW + Lang.get("stageEditorPasswordPhrasePrompt") + "\n";
text += ChatColor.ITALIC + "" + ChatColor.GOLD + Lang.get("stageEditorPasswordPhraseHint1") + "\n"; text += ChatColor.ITALIC + "" + ChatColor.GOLD + Lang.get("stageEditorPasswordPhraseHint1") + "\n";
text += ChatColor.RESET + "" + ChatColor.YELLOW + Lang.get("stageEditorPasswordPhraseHint2"); text += ChatColor.RESET + "" + ChatColor.YELLOW + Lang.get("stageEditorPasswordPhraseHint2");
return text; return text;
@ -540,7 +540,7 @@ public class CreateStagePrompt extends FixedSetPrompt {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
String text = ChatColor.YELLOW + Lang.get("stageEditorObjectiveOverridePrompt") + Lang.orCancelToReturn + "\n"; String text = ChatColor.YELLOW + Lang.get("stageEditorObjectiveOverridePrompt") + "\n";
text += ChatColor.ITALIC + "" + ChatColor.GOLD + Lang.get("stageEditorObjectiveOverrideHint"); text += ChatColor.ITALIC + "" + ChatColor.GOLD + Lang.get("stageEditorObjectiveOverrideHint");
return text; return text;
} }
@ -680,7 +680,7 @@ public class CreateStagePrompt extends FixedSetPrompt {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
return ChatColor.YELLOW + Lang.get("stageEditorEnterBlockNames") + Lang.orCancelToReturn; return ChatColor.YELLOW + Lang.get("stageEditorEnterBlockNames");
} }
@Override @Override
@ -716,7 +716,7 @@ public class CreateStagePrompt extends FixedSetPrompt {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
return ChatColor.YELLOW + Lang.get("stageEditorBreakBlocksPrompt") + Lang.orCancelToReturn; return ChatColor.YELLOW + Lang.get("stageEditorBreakBlocksPrompt");
} }
@Override @Override
@ -747,7 +747,7 @@ public class CreateStagePrompt extends FixedSetPrompt {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
return ChatColor.YELLOW + Lang.get("stageEditorEnterBlockDurability") + Lang.orCancelToReturn; return ChatColor.YELLOW + Lang.get("stageEditorEnterBlockDurability");
} }
@Override @Override
@ -933,7 +933,7 @@ public class CreateStagePrompt extends FixedSetPrompt {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
return ChatColor.YELLOW + Lang.get("stageEditorDamageBlocksPrompt") + Lang.orCancelToReturn; return ChatColor.YELLOW + Lang.get("stageEditorDamageBlocksPrompt");
} }
@Override @Override
@ -1150,7 +1150,7 @@ public class CreateStagePrompt extends FixedSetPrompt {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
return ChatColor.YELLOW + Lang.get("stageEditorPlaceBlocksPrompt") + Lang.orCancelToReturn; return ChatColor.YELLOW + Lang.get("stageEditorPlaceBlocksPrompt");
} }
@Override @Override
@ -1367,7 +1367,7 @@ public class CreateStagePrompt extends FixedSetPrompt {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
return ChatColor.YELLOW + Lang.get("stageEditorUseBlocksPrompt") + Lang.orCancelToReturn; return ChatColor.YELLOW + Lang.get("stageEditorUseBlocksPrompt");
} }
@Override @Override
@ -1584,7 +1584,7 @@ public class CreateStagePrompt extends FixedSetPrompt {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
return ChatColor.YELLOW + Lang.get("stageEditorCutBlocksPrompt") + Lang.orCancelToReturn; return ChatColor.YELLOW + Lang.get("stageEditorCutBlocksPrompt");
} }
@Override @Override
@ -1809,7 +1809,7 @@ public class CreateStagePrompt extends FixedSetPrompt {
text += ChatColor.GREEN + Quester.prettyEnchantmentString(e) + ", "; text += ChatColor.GREEN + Quester.prettyEnchantmentString(e) + ", ";
} }
text = text.substring(0, text.length() - 1); text = text.substring(0, text.length() - 1);
return text + "\n" + ChatColor.YELLOW + Lang.get("stageEditorEnchantTypePrompt") + Lang.orCancelToReturn; return text + "\n" + ChatColor.YELLOW + Lang.get("stageEditorEnchantTypePrompt");
} }
@Override @Override
@ -1848,7 +1848,7 @@ public class CreateStagePrompt extends FixedSetPrompt {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
return ChatColor.YELLOW + Lang.get("stageEditorItemNamesPrompt") + Lang.orCancelToReturn; return ChatColor.YELLOW + Lang.get("stageEditorItemNamesPrompt");
} }
@Override @Override
@ -1884,7 +1884,7 @@ public class CreateStagePrompt extends FixedSetPrompt {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
return ChatColor.YELLOW + Lang.get("stageEditorEnchantAmountsPrompt") + Lang.orCancelToReturn; return ChatColor.YELLOW + Lang.get("stageEditorEnchantAmountsPrompt");
} }
@Override @Override
@ -2042,7 +2042,7 @@ public class CreateStagePrompt extends FixedSetPrompt {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
questFactory.selectingNPCs.add((Player) context.getForWhom()); questFactory.selectingNPCs.add((Player) context.getForWhom());
return ChatColor.YELLOW + Lang.get("stageEditorNPCPrompt") + Lang.orCancelToReturn + "\n" + ChatColor.GOLD + Lang.get("npcHint"); return ChatColor.YELLOW + Lang.get("stageEditorNPCPrompt") + "\n" + ChatColor.GOLD + Lang.get("npcHint");
} }
@Override @Override
@ -2076,7 +2076,7 @@ public class CreateStagePrompt extends FixedSetPrompt {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
String note = ChatColor.GOLD + Lang.get("stageEditorNPCNote"); String note = ChatColor.GOLD + Lang.get("stageEditorNPCNote");
return ChatColor.YELLOW + Lang.get("stageEditorDeliveryMessagesPrompt") + Lang.orCancelToReturn + "\n" + note; return ChatColor.YELLOW + Lang.get("stageEditorDeliveryMessagesPrompt") + "\n" + note;
} }
@Override @Override
@ -2096,7 +2096,7 @@ public class CreateStagePrompt extends FixedSetPrompt {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
questFactory.selectingNPCs.add((Player) context.getForWhom()); questFactory.selectingNPCs.add((Player) context.getForWhom());
return ChatColor.YELLOW + Lang.get("stageEditorNPCToTalkToPrompt") + Lang.orCancelToReturn + "\n" + ChatColor.GOLD + Lang.get("npcHint"); return ChatColor.YELLOW + Lang.get("stageEditorNPCToTalkToPrompt") + "\n" + ChatColor.GOLD + Lang.get("npcHint");
} }
@Override @Override
@ -2216,7 +2216,7 @@ public class CreateStagePrompt extends FixedSetPrompt {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
questFactory.selectingNPCs.add((Player) context.getForWhom()); questFactory.selectingNPCs.add((Player) context.getForWhom());
return ChatColor.YELLOW + Lang.get("stageEditorNPCPrompt") + Lang.orCancelToReturn + "\n" + ChatColor.GOLD + Lang.get("npcHint"); return ChatColor.YELLOW + Lang.get("stageEditorNPCPrompt") + "\n" + ChatColor.GOLD + Lang.get("npcHint");
} }
@Override @Override
@ -2249,7 +2249,7 @@ public class CreateStagePrompt extends FixedSetPrompt {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
return ChatColor.YELLOW + Lang.get("stageEditorKillNPCsPrompt") + Lang.orCancelToReturn; return ChatColor.YELLOW + Lang.get("stageEditorKillNPCsPrompt");
} }
@Override @Override
@ -2479,7 +2479,7 @@ public class CreateStagePrompt extends FixedSetPrompt {
mobs += MiscUtil.getProperMobName(mobArr.get(i)) + "\n"; mobs += MiscUtil.getProperMobName(mobArr.get(i)) + "\n";
} }
} }
return mobs + ChatColor.YELLOW + Lang.get("stageEditorMobsPrompt") + Lang.orCancelToReturn; return mobs + ChatColor.YELLOW + Lang.get("stageEditorMobsPrompt");
} }
@Override @Override
@ -2505,7 +2505,7 @@ public class CreateStagePrompt extends FixedSetPrompt {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
return ChatColor.YELLOW + Lang.get("stageEditorMobAmountsPrompt") + Lang.orCancelToReturn; return ChatColor.YELLOW + Lang.get("stageEditorMobAmountsPrompt");
} }
@Override @Override
@ -2536,7 +2536,7 @@ public class CreateStagePrompt extends FixedSetPrompt {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
return ChatColor.YELLOW + Lang.get("stageEditorMobLocationPrompt") + Lang.orCancelToReturn; return ChatColor.YELLOW + Lang.get("stageEditorMobLocationPrompt");
} }
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
@ -2574,7 +2574,7 @@ public class CreateStagePrompt extends FixedSetPrompt {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
return ChatColor.YELLOW + Lang.get("stageEditorMobLocationRadiiPrompt") + Lang.orCancelToReturn; return ChatColor.YELLOW + Lang.get("stageEditorMobLocationRadiiPrompt");
} }
@Override @Override
@ -2605,7 +2605,7 @@ public class CreateStagePrompt extends FixedSetPrompt {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
return ChatColor.YELLOW + Lang.get("stageEditorMobLocationNamesPrompt") + Lang.orCancelToReturn; return ChatColor.YELLOW + Lang.get("stageEditorMobLocationNamesPrompt");
} }
@Override @Override
@ -2737,7 +2737,7 @@ public class CreateStagePrompt extends FixedSetPrompt {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
return ChatColor.YELLOW + Lang.get("stageEditorReachLocationPrompt") + Lang.orCancelToReturn; return ChatColor.YELLOW + Lang.get("stageEditorReachLocationPrompt");
} }
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
@ -2775,7 +2775,7 @@ public class CreateStagePrompt extends FixedSetPrompt {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
return ChatColor.YELLOW + Lang.get("stageEditorReachLocationRadiiPrompt") + Lang.orCancelToReturn; return ChatColor.YELLOW + Lang.get("stageEditorReachLocationRadiiPrompt");
} }
@Override @Override
@ -2806,7 +2806,7 @@ public class CreateStagePrompt extends FixedSetPrompt {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
return ChatColor.YELLOW + Lang.get("stageEditorReachLocationNamesPrompt") + Lang.orCancelToReturn; return ChatColor.YELLOW + Lang.get("stageEditorReachLocationNamesPrompt");
} }
@Override @Override
@ -2947,7 +2947,7 @@ public class CreateStagePrompt extends FixedSetPrompt {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
return ChatColor.YELLOW + Lang.get("stageEditorTameAmountsPrompt") + Lang.orCancelToReturn; return ChatColor.YELLOW + Lang.get("stageEditorTameAmountsPrompt");
} }
@Override @Override
@ -3071,7 +3071,7 @@ public class CreateStagePrompt extends FixedSetPrompt {
cols += Quests.getDyeString(colArr[i]) + "\n"; cols += Quests.getDyeString(colArr[i]) + "\n";
} }
} }
return cols + ChatColor.YELLOW + Lang.get("stageEditorShearColorsPrompt") + Lang.orCancelToReturn; return cols + ChatColor.YELLOW + Lang.get("stageEditorShearColorsPrompt");
} }
@Override @Override
@ -3097,7 +3097,7 @@ public class CreateStagePrompt extends FixedSetPrompt {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
return ChatColor.YELLOW + Lang.get("stageEditorShearAmountsPrompt") + Lang.orCancelToReturn; return ChatColor.YELLOW + Lang.get("stageEditorShearAmountsPrompt");
} }
@Override @Override
@ -3212,7 +3212,7 @@ public class CreateStagePrompt extends FixedSetPrompt {
text += ChatColor.GREEN + "- " + e.getName() + "\n"; text += ChatColor.GREEN + "- " + e.getName() + "\n";
} }
} }
return text + ChatColor.YELLOW + Lang.get("stageEditorEventsPrompt") + Lang.orCancelToReturn; return text + ChatColor.YELLOW + Lang.get("stageEditorEventsPrompt");
} }
@Override @Override
@ -3257,7 +3257,7 @@ public class CreateStagePrompt extends FixedSetPrompt {
text += ChatColor.GREEN + "- " + e.getName() + "\n"; text += ChatColor.GREEN + "- " + e.getName() + "\n";
} }
} }
return text + ChatColor.YELLOW + Lang.get("stageEditorEventsPrompt") + Lang.orCancelToReturn; return text + ChatColor.YELLOW + Lang.get("stageEditorEventsPrompt");
} }
@Override @Override
@ -3302,7 +3302,7 @@ public class CreateStagePrompt extends FixedSetPrompt {
text += ChatColor.GREEN + "- " + e.getName() + "\n"; text += ChatColor.GREEN + "- " + e.getName() + "\n";
} }
} }
return text + ChatColor.YELLOW + Lang.get("stageEditorEventsPrompt") + Lang.orCancelToReturn; return text + ChatColor.YELLOW + Lang.get("stageEditorEventsPrompt");
} }
@Override @Override
@ -3347,7 +3347,7 @@ public class CreateStagePrompt extends FixedSetPrompt {
text += ChatColor.GREEN + "- " + e.getName() + "\n"; text += ChatColor.GREEN + "- " + e.getName() + "\n";
} }
} }
return text + ChatColor.YELLOW + Lang.get("stageEditorEventsPrompt") + Lang.orCancelToReturn; return text + ChatColor.YELLOW + Lang.get("stageEditorEventsPrompt");
} }
@Override @Override
@ -3392,7 +3392,7 @@ public class CreateStagePrompt extends FixedSetPrompt {
text += ChatColor.GREEN + "- " + e.getName() + "\n"; text += ChatColor.GREEN + "- " + e.getName() + "\n";
} }
} }
return text + ChatColor.YELLOW + Lang.get("stageEditorChatEventsPrompt") + Lang.orCancelToReturn; return text + ChatColor.YELLOW + Lang.get("stageEditorChatEventsPrompt");
} }
@Override @Override
@ -3432,7 +3432,7 @@ public class CreateStagePrompt extends FixedSetPrompt {
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
String tempEvent = (String) context.getSessionData(pref + CK.S_CHAT_TEMP_EVENT); String tempEvent = (String) context.getSessionData(pref + CK.S_CHAT_TEMP_EVENT);
String text = ChatColor.GOLD + "- " + Lang.get("stageEditorChatTrigger") + " -\n"; String text = ChatColor.GOLD + "- " + Lang.get("stageEditorChatTrigger") + " -\n";
text += ChatColor.YELLOW + Lang.get("stageEditorChatEventsTriggerPrompt") + " " + ChatColor.AQUA + tempEvent + " " + ChatColor.YELLOW + Lang.orCancelToReturn; text += Lang.get("stageEditorChatEventsTriggerPrompt").replaceAll("<event>", tempEvent);
return text; return text;
} }
@ -3479,7 +3479,7 @@ public class CreateStagePrompt extends FixedSetPrompt {
text += ChatColor.GREEN + "- " + e.getName() + "\n"; text += ChatColor.GREEN + "- " + e.getName() + "\n";
} }
} }
return text + ChatColor.YELLOW + Lang.get("stageEditorCommandEventsPrompt") + Lang.orCancelToReturn; return text + ChatColor.YELLOW + Lang.get("stageEditorCommandEventsPrompt");
} }
@Override @Override
@ -3519,7 +3519,7 @@ public class CreateStagePrompt extends FixedSetPrompt {
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
String tempEvent = (String) context.getSessionData(pref + CK.S_COMMAND_TEMP_EVENT); String tempEvent = (String) context.getSessionData(pref + CK.S_COMMAND_TEMP_EVENT);
String text = ChatColor.GOLD + "- " + Lang.get("stageEditorCommandTrigger") + " -\n"; String text = ChatColor.GOLD + "- " + Lang.get("stageEditorCommandTrigger") + " -\n";
text += ChatColor.YELLOW + Lang.get("stageEditorCommandEventsTriggerPrompt") + " " + ChatColor.AQUA + tempEvent + " " + ChatColor.YELLOW + Lang.orCancelToReturn; text += Lang.get("stageEditorCommandEventsTriggerPrompt").replaceAll("<event>", tempEvent);
return text; return text;
} }
@ -3558,7 +3558,7 @@ public class CreateStagePrompt extends FixedSetPrompt {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
return ChatColor.YELLOW + Lang.get("stageEditorDelayPrompt") + Lang.orCancelToReturn; return ChatColor.YELLOW + Lang.get("stageEditorDelayPrompt");
} }
@Override @Override
@ -3624,7 +3624,7 @@ public class CreateStagePrompt extends FixedSetPrompt {
for (String s : ScriptRegistry._getScriptNames()) { for (String s : ScriptRegistry._getScriptNames()) {
text += ChatColor.AQUA + "- " + s + "\n"; text += ChatColor.AQUA + "- " + s + "\n";
} }
return text + ChatColor.YELLOW + Lang.get("stageEditorScriptPrompt") + Lang.orCancelToReturn; return text + ChatColor.YELLOW + Lang.get("stageEditorScriptPrompt");
} }
@Override @Override
@ -3677,7 +3677,7 @@ public class CreateStagePrompt extends FixedSetPrompt {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
return ChatColor.YELLOW + Lang.get("stageEditorStartMessagePrompt") + Lang.orCancelToReturn; return ChatColor.YELLOW + Lang.get("stageEditorStartMessagePrompt");
} }
@Override @Override
@ -3700,7 +3700,7 @@ public class CreateStagePrompt extends FixedSetPrompt {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
return ChatColor.YELLOW + Lang.get("stageEditorCompleteMessagePrompt") + Lang.orCancelToReturn; return ChatColor.YELLOW + Lang.get("stageEditorCompleteMessagePrompt");
} }
@Override @Override
@ -3731,7 +3731,7 @@ public class CreateStagePrompt extends FixedSetPrompt {
text += ChatColor.DARK_PURPLE + " - " + co.getName() + "\n"; text += ChatColor.DARK_PURPLE + " - " + co.getName() + "\n";
} }
} }
return text + ChatColor.YELLOW + Lang.get("stageEditorCustomPrompt") + Lang.orCancelToReturn; return text + ChatColor.YELLOW + Lang.get("stageEditorCustomPrompt");
} }
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")

View File

@ -217,7 +217,7 @@ public class ItemStackPrompt extends FixedSetPrompt {
@Override @Override
public String getPromptText(ConversationContext cc) { public String getPromptText(ConversationContext cc) {
return ChatColor.YELLOW + Lang.get("itemCreateEnterName") + Lang.orCancelToReturn; return ChatColor.YELLOW + Lang.get("itemCreateEnterName");
} }
@Override @Override
@ -259,7 +259,7 @@ public class ItemStackPrompt extends FixedSetPrompt {
@Override @Override
public String getPromptText(ConversationContext cc) { public String getPromptText(ConversationContext cc) {
return ChatColor.YELLOW + Lang.get("itemCreateEnterAmount") + Lang.orCancelToReturn; return ChatColor.YELLOW + Lang.get("itemCreateEnterAmount");
} }
@Override @Override
@ -288,7 +288,7 @@ public class ItemStackPrompt extends FixedSetPrompt {
@Override @Override
public String getPromptText(ConversationContext cc) { public String getPromptText(ConversationContext cc) {
return ChatColor.YELLOW + Lang.get("itemCreateEnterDurab") + Lang.orCancelToReturn; return ChatColor.YELLOW + Lang.get("itemCreateEnterDurab");
} }
@Override @Override
@ -323,7 +323,7 @@ public class ItemStackPrompt extends FixedSetPrompt {
text += ChatColor.GREEN + Quester.prettyEnchantmentString(e) + ", "; text += ChatColor.GREEN + Quester.prettyEnchantmentString(e) + ", ";
} }
text = text.substring(0, text.length() - 2); text = text.substring(0, text.length() - 2);
return text + "\n" + ChatColor.YELLOW + Lang.get("itemCreateEnterEnch") + Lang.orCancelToReturn; return text + "\n" + ChatColor.YELLOW + Lang.get("itemCreateEnterEnch");
} }
@Override @Override
@ -390,7 +390,7 @@ public class ItemStackPrompt extends FixedSetPrompt {
@Override @Override
public String getPromptText(ConversationContext cc) { public String getPromptText(ConversationContext cc) {
return ChatColor.YELLOW + Lang.get("itemCreateEnterDisplay") + Lang.orCancelToReturn; return ChatColor.YELLOW + Lang.get("itemCreateEnterDisplay");
} }
@Override @Override
@ -409,7 +409,7 @@ public class ItemStackPrompt extends FixedSetPrompt {
@Override @Override
public String getPromptText(ConversationContext cc) { public String getPromptText(ConversationContext cc) {
return ChatColor.YELLOW + Lang.get("itemCreateEnterLore") + Lang.orCancelToReturn; return ChatColor.YELLOW + Lang.get("itemCreateEnterLore");
} }
@Override @Override

View File

@ -261,7 +261,7 @@ public class RequirementsPrompt extends FixedSetPrompt {
text = text.substring(0, (text.length() - 2)); text = text.substring(0, (text.length() - 2));
text += "\n"; text += "\n";
} }
String lang = Lang.get("reqQuestPrompt") + Lang.orCancelToReturn; String lang = Lang.get("reqQuestPrompt");
lang = lang.replaceAll("<comma>", ChatColor.RED + "" + ChatColor.BOLD + Lang.get("comma") + ChatColor.RESET + ChatColor.YELLOW); lang = lang.replaceAll("<comma>", ChatColor.RED + "" + ChatColor.BOLD + Lang.get("comma") + ChatColor.RESET + ChatColor.YELLOW);
text += ChatColor.YELLOW + lang; text += ChatColor.YELLOW + lang;
return text; return text;
@ -410,7 +410,7 @@ public class RequirementsPrompt extends FixedSetPrompt {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
return ChatColor.YELLOW + Lang.get("reqRemoveItemsPrompt") + Lang.orCancelToReturn; return ChatColor.YELLOW + Lang.get("reqRemoveItemsPrompt");
} }
@Override @Override
@ -440,7 +440,7 @@ public class RequirementsPrompt extends FixedSetPrompt {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
return ChatColor.YELLOW + Lang.get("reqPermissionsPrompt") + Lang.orCancelToReturn; return ChatColor.YELLOW + Lang.get("reqPermissionsPrompt");
} }
@Override @Override
@ -469,7 +469,7 @@ public class RequirementsPrompt extends FixedSetPrompt {
text += ChatColor.DARK_PURPLE + " - " + cr.getName() + "\n"; text += ChatColor.DARK_PURPLE + " - " + cr.getName() + "\n";
} }
} }
return text + ChatColor.YELLOW + Lang.get("reqCustomPrompt") + Lang.orCancelToReturn; return text + ChatColor.YELLOW + Lang.get("reqCustomPrompt");
} }
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
@ -683,7 +683,7 @@ public class RequirementsPrompt extends FixedSetPrompt {
skillList += ChatColor.GREEN + skills[i].getName() + "\n\n"; skillList += ChatColor.GREEN + skills[i].getName() + "\n\n";
} }
} }
return skillList + ChatColor.YELLOW + Lang.get("reqMcMMOPrompt") + Lang.orCancelToReturn; return skillList + ChatColor.YELLOW + Lang.get("reqMcMMOPrompt");
} }
@Override @Override
@ -721,7 +721,7 @@ public class RequirementsPrompt extends FixedSetPrompt {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
return ChatColor.YELLOW + Lang.get("reqMcMMOAmountsPrompt") + Lang.orCancelToReturn; return ChatColor.YELLOW + Lang.get("reqMcMMOAmountsPrompt");
} }
@Override @Override
@ -807,7 +807,7 @@ public class RequirementsPrompt extends FixedSetPrompt {
text += ChatColor.DARK_PURPLE + "- " + ChatColor.LIGHT_PURPLE + s + "\n"; text += ChatColor.DARK_PURPLE + "- " + ChatColor.LIGHT_PURPLE + s + "\n";
} }
} }
text += ChatColor.YELLOW + Lang.get("reqHeroesPrimaryPrompt") + Lang.orCancelToReturn; text += ChatColor.YELLOW + Lang.get("reqHeroesPrimaryPrompt");
return text; return text;
} }
@ -858,7 +858,7 @@ public class RequirementsPrompt extends FixedSetPrompt {
text += ChatColor.DARK_PURPLE + "- " + ChatColor.LIGHT_PURPLE + s + "\n"; text += ChatColor.DARK_PURPLE + "- " + ChatColor.LIGHT_PURPLE + s + "\n";
} }
} }
text += ChatColor.YELLOW + Lang.get("reqHeroesSecondaryPrompt") + Lang.orCancelToReturn; text += ChatColor.YELLOW + Lang.get("reqHeroesSecondaryPrompt");
return text; return text;
} }
@ -894,7 +894,7 @@ public class RequirementsPrompt extends FixedSetPrompt {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
return ChatColor.YELLOW + Lang.get("reqFailMessagePrompt") + Lang.orCancelToReturn; return ChatColor.YELLOW + Lang.get("reqFailMessagePrompt");
} }
@Override @Override

View File

@ -319,7 +319,7 @@ public class RewardsPrompt extends FixedSetPrompt {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
String lang1 = Lang.get("rewCommandPrompt") + Lang.orCancelToReturn; String lang1 = Lang.get("rewCommandPrompt");
lang1 = lang1.replaceAll("<comma>", ChatColor.BOLD + "" + ChatColor.RED + "comma" + ChatColor.RESET + ChatColor.YELLOW); lang1 = lang1.replaceAll("<comma>", ChatColor.BOLD + "" + ChatColor.RED + "comma" + ChatColor.RESET + ChatColor.YELLOW);
String lang2 = Lang.get("rewCommandPromptHint"); String lang2 = Lang.get("rewCommandPromptHint");
return ChatColor.YELLOW + lang1 + "\n" + lang2; return ChatColor.YELLOW + lang1 + "\n" + lang2;
@ -348,7 +348,7 @@ public class RewardsPrompt extends FixedSetPrompt {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
return ChatColor.YELLOW + Lang.get("rewPermissionsPrompt") + Lang.orCancelToReturn; return ChatColor.YELLOW + Lang.get("rewPermissionsPrompt");
} }
@Override @Override
@ -463,7 +463,7 @@ public class RewardsPrompt extends FixedSetPrompt {
skillList += ChatColor.GREEN + skills[i].getName() + "\n\n"; skillList += ChatColor.GREEN + skills[i].getName() + "\n\n";
} }
} }
return skillList + Lang.get("rewMcMMOPrompt") + Lang.orCancelToReturn + "\n" + ChatColor.GOLD + Lang.get("rewMcMMOPromptHint"); return skillList + Lang.get("rewMcMMOPrompt") + "\n" + ChatColor.GOLD + Lang.get("rewMcMMOPromptHint");
} }
@Override @Override
@ -622,7 +622,7 @@ public class RewardsPrompt extends FixedSetPrompt {
} }
text = text.substring(0, text.length() - 2) + "\n"; text = text.substring(0, text.length() - 2) + "\n";
} }
text += ChatColor.YELLOW + Lang.get("rewHeroesClassesPrompt") + Lang.orCancelToReturn; text += ChatColor.YELLOW + Lang.get("rewHeroesClassesPrompt");
return text; return text;
} }
@ -655,7 +655,7 @@ public class RewardsPrompt extends FixedSetPrompt {
@Override @Override
public String getPromptText(ConversationContext cc) { public String getPromptText(ConversationContext cc) {
String text = Lang.get("heroesExperienceTitle") + "\n"; String text = Lang.get("heroesExperienceTitle") + "\n";
text += ChatColor.YELLOW + Lang.get("rewHeroesExperiencePrompt") + Lang.orCancelToReturn; text += ChatColor.YELLOW + Lang.get("rewHeroesExperiencePrompt");
return text; return text;
} }
@ -691,7 +691,7 @@ public class RewardsPrompt extends FixedSetPrompt {
for (PhatLoot pl : PhatLootsAPI.getAllPhatLoots()) { for (PhatLoot pl : PhatLootsAPI.getAllPhatLoots()) {
text += ChatColor.GRAY + "- " + ChatColor.BLUE + pl.name + "\n"; text += ChatColor.GRAY + "- " + ChatColor.BLUE + pl.name + "\n";
} }
text += ChatColor.YELLOW + Lang.get("rewPhatLootsPrompt") + Lang.orCancelToReturn; text += ChatColor.YELLOW + Lang.get("rewPhatLootsPrompt");
return text; return text;
} }
@ -733,7 +733,7 @@ public class RewardsPrompt extends FixedSetPrompt {
text += ChatColor.DARK_PURPLE + " - " + cr.getName() + "\n"; text += ChatColor.DARK_PURPLE + " - " + cr.getName() + "\n";
} }
} }
return text + ChatColor.YELLOW + Lang.get("rewCustomRewardPrompt") + Lang.orCancelToReturn; return text + ChatColor.YELLOW + Lang.get("rewCustomRewardPrompt");
} }
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")

View File

@ -35,7 +35,7 @@ public class Lang {
private static final LangToken tokens = new LangToken(); private static final LangToken tokens = new LangToken();
public static final LinkedHashMap<String, String> langMap = new LinkedHashMap<String, String>(); public static final LinkedHashMap<String, String> langMap = new LinkedHashMap<String, String>();
private final Quests plugin; private final Quests plugin;
public static String orCancelToReturn = "or 'cancel' to return"; //public static String orCancelToReturn = "or 'cancel' to return";
public Lang(Quests plugin) { public Lang(Quests plugin) {
tokens.initTokens(); tokens.initTokens();
@ -108,6 +108,7 @@ public class Lang {
config_new.options().copyHeader(true); config_new.options().copyHeader(true);
config_new.save(langFile_new); config_new.save(langFile_new);
langMap.putAll(allStrings); langMap.putAll(allStrings);
finishLang();
} else { } else {
plugin.getLogger().severe("Failed loading lang files for " + iso + " because they were not found. Using default en-US"); plugin.getLogger().severe("Failed loading lang files for " + iso + " because they were not found. Using default en-US");
iso = "en-US"; iso = "en-US";
@ -116,11 +117,21 @@ public class Lang {
allStrings.put(key, config.getString(key)); allStrings.put(key, config.getString(key));
} }
langMap.putAll(allStrings); langMap.putAll(allStrings);
finishLang();
} }
orCancelToReturn = get("strCancel").replaceAll("<cancel>", get("cmdCancel"));
plugin.getLogger().info("Loaded language " + iso + ". Translations via Crowdin"); plugin.getLogger().info("Loaded language " + iso + ". Translations via Crowdin");
} }
private void finishLang() {
// or 'cancel' to return
if (get("strCancel") != null) {
langMap.put("strCancel", get("strCancel").replaceAll("<command>", get("cmdCancel")));
}
for (String s : langMap.keySet()) {
langMap.put(s, get(s).replaceAll("<cancel>", get("strCancel")));
}
}
/** /**
* Load YAML file using UTF8 format to allow extended characters * Load YAML file using UTF8 format to allow extended characters
* @param file system file in YAML format * @param file system file in YAML format

View File

@ -67,18 +67,18 @@ questEditorSetGUI: "Set GUI Item display"
questEditorReqs: "Edit Requirements" questEditorReqs: "Edit Requirements"
questEditorStages: "Edit Stages" questEditorStages: "Edit Stages"
questEditorRews: "Edit Rewards" questEditorRews: "Edit Rewards"
questEditorEnterQuestName: "Enter Quest name" questEditorEnterQuestName: "Enter Quest name (<cancel>)"
questEditorEditEnterQuestName: "Enter Quest name to edit" questEditorEditEnterQuestName: "Enter Quest name to edit (<cancel>)"
questEditorEnterAskMessage: "Enter ask message" questEditorEnterAskMessage: "Enter ask message (<cancel>)"
questEditorEnterFinishMessage: "Enter finish message" questEditorEnterFinishMessage: "Enter finish message (<cancel>)"
questEditorEnterRedoDelay: "Enter amount of time (in seconds), 0 to clear the redo delay or -1 to cancel" questEditorEnterRedoDelay: "Enter amount of time (in seconds), 0 to clear the redo delay or -1 to cancel"
questEditorEnterNPCStart: "Enter NPC ID, -1 to clear the NPC start or -2 to cancel" questEditorEnterNPCStart: "Enter NPC ID, -1 to clear the NPC start or -2 to cancel"
questEditorEnterBlockStart: "Right-click on a block to use as a start point, then enter 'done' to save, or enter 'clear' to clear the block start, " questEditorEnterBlockStart: "Right-click on a block to use as a start point, then enter 'done' to save, or enter 'clear' to clear the block start, <cancel>"
questEditorEnterInitialEvent: "Enter an Event name, or enter 'clear' to clear the initial Event, " questEditorEnterInitialEvent: "Enter an Event name, or enter 'clear' to clear the initial Event, <cancel>"
questRequiredNoneSet: "Required, none set" questRequiredNoneSet: "Required, none set"
questWGSetRegion: "Set Region" questWGSetRegion: "Set Region"
questWGNotInstalled: "WorldGuard not installed" questWGNotInstalled: "WorldGuard not installed"
questWGPrompt: "Enter WorldGuard region, or enter 'clear' to clear the region, " questWGPrompt: "Enter WorldGuard region, or enter 'clear' to clear the region, <cancel>"
questWGInvalidRegion: "<region> is not a valid WorldGuard region!" questWGInvalidRegion: "<region> is not a valid WorldGuard region!"
questWGRegionCleared: "Quest region cleared." questWGRegionCleared: "Quest region cleared."
questCitNotInstalled: "Citizens not installed" questCitNotInstalled: "Citizens not installed"
@ -187,53 +187,53 @@ stageEditorObjectiveOverride: "Objective display override"
stageEditorCustom: "Custom objectives" stageEditorCustom: "Custom objectives"
stageEditorNoModules: "No modules loaded" stageEditorNoModules: "No modules loaded"
stageEditorModuleNotFound: "Custom objective module not found." stageEditorModuleNotFound: "Custom objective module not found."
stageEditorCustomPrompt: "Enter the name of a custom objective to add, or enter 'clear' to clear all custom objectives, " stageEditorCustomPrompt: "Enter the name of a custom objective to add, or enter 'clear' to clear all custom objectives, <cancel>"
stageEditorCustomAlreadyAdded: "That custom objective has already been added!" stageEditorCustomAlreadyAdded: "That custom objective has already been added!"
stageEditorCustomCleared: "Custom objectives cleared." stageEditorCustomCleared: "Custom objectives cleared."
stageEditorCustomDataPrompt: "Enter value for <data>:" stageEditorCustomDataPrompt: "Enter value for <data>:"
stageEditorEnterBlockNames: "Enter block names (or IDs), separating each one by a space, " stageEditorEnterBlockNames: "Enter block names (or IDs), separating each one by a space, <cancel>"
stageEditorBreakBlocksPrompt: "Enter break amounts (numbers), separating each one by a space, " stageEditorBreakBlocksPrompt: "Enter break amounts (numbers), separating each one by a space, <cancel>"
stageEditorDamageBlocksPrompt: "Enter damage amounts (numbers), separating each one by a space, " stageEditorDamageBlocksPrompt: "Enter damage amounts (numbers), separating each one by a space, <cancel>"
stageEditorPlaceBlocksPrompt: "Enter place amounts (numbers), separating each one by a space, " stageEditorPlaceBlocksPrompt: "Enter place amounts (numbers), separating each one by a space, <cancel>"
stageEditorUseBlocksPrompt: "Enter use amounts (numbers), separating each one by a space, " stageEditorUseBlocksPrompt: "Enter use amounts (numbers), separating each one by a space, <cancel>"
stageEditorCutBlocksPrompt: "Enter cut amounts (numbers), separating each one by a space, " stageEditorCutBlocksPrompt: "Enter cut amounts (numbers), separating each one by a space, <cancel>"
stageEditorEnterBlockDurability: "Enter block durability (numbers), separating each one by a space, " stageEditorEnterBlockDurability: "Enter block durability (numbers), separating each one by a space, <cancel>"
stageEditorCatchFishPrompt: "Enter number of fish to catch, or 0 to clear the fish catch objective, or -1 to cancel" stageEditorCatchFishPrompt: "Enter number of fish to catch, or 0 to clear the fish catch objective, or -1 to cancel"
stageEditorKillPlayerPrompt: "Enter number of players to kill, or 0 to clear the player kill objective, or -1 to cancel" stageEditorKillPlayerPrompt: "Enter number of players to kill, or 0 to clear the player kill objective, or -1 to cancel"
stageEditorEnchantTypePrompt: "Enter enchantment names, separating each one by a comma, " stageEditorEnchantTypePrompt: "Enter enchantment names, separating each one by a comma, <cancel>"
stageEditorEnchantAmountsPrompt: "Enter enchant amounts (numbers), separating each one by a space, " stageEditorEnchantAmountsPrompt: "Enter enchant amounts (numbers), separating each one by a space, <cancel>"
stageEditorItemNamesPrompt: "Enter item names, separating each one by a space, " stageEditorItemNamesPrompt: "Enter item names, separating each one by a space, <cancel>"
stageEditorNPCPrompt: "Enter NPC ids, separating each one by a space, " stageEditorNPCPrompt: "Enter NPC IDs, separating each one by a space, <cancel>"
stageEditorNPCToTalkToPrompt: "Enter NPC IDs, separating each one by a space, or enter 'clear' to clear the NPC ID list, " stageEditorNPCToTalkToPrompt: "Enter NPC IDs, separating each one by a space, or enter 'clear' to clear the NPC ID list, <cancel>"
stageEditorDeliveryMessagesPrompt: "Enter delivery messages, separating each one by a semi-colon, " stageEditorDeliveryMessagesPrompt: "Enter delivery messages, separating each one by a semi-colon, <cancel>"
stageEditorKillNPCsPrompt: "Enter kill amounts (numbers), separating each one by a space, " stageEditorKillNPCsPrompt: "Enter kill amounts (numbers), separating each one by a space, <cancel>"
stageEditorMobsPrompt: "Enter mob names separating each one by a space, " stageEditorMobsPrompt: "Enter mob names separating each one by a space, <cancel>"
stageEditorMobAmountsPrompt: "Enter mob amounts separating each one by a space, " stageEditorMobAmountsPrompt: "Enter mob amounts separating each one by a space, <cancel>"
stageEditorMobLocationPrompt: "Right-click on a block to select it, then enter 'add' to add it to the kill location list, " stageEditorMobLocationPrompt: "Right-click on a block to select it, then enter 'add' to add it to the kill location list, <cancel>"
stageEditorMobLocationRadiiPrompt: "Enter kill location radii (number of blocks) separating each one by a space, " stageEditorMobLocationRadiiPrompt: "Enter kill location radii (number of blocks) separating each one by a space, <cancel>"
stageEditorMobLocationNamesPrompt: "Enter location names separating each one by a comma, " stageEditorMobLocationNamesPrompt: "Enter location names separating each one by a comma, <cancel>"
stageEditorReachLocationPrompt: "Right-click on a block to select it, then enter 'add' to add it to the reach location list, " stageEditorReachLocationPrompt: "Right-click on a block to select it, then enter 'add' to add it to the reach location list, <cancel>"
stageEditorReachLocationRadiiPrompt: "Enter reach location radii (number of blocks) separating each one by a space, " stageEditorReachLocationRadiiPrompt: "Enter reach location radii (number of blocks) separating each one by a space, <cancel>"
stageEditorReachLocationNamesPrompt: "Enter location names separating each one by a comma, " stageEditorReachLocationNamesPrompt: "Enter location names separating each one by a comma, <cancel>"
stageEditorTameAmountsPrompt: "Enter tame amounts separating each one by a space, " stageEditorTameAmountsPrompt: "Enter tame amounts separating each one by a space, <cancel>"
stageEditorShearColorsPrompt: "Enter sheep colors separating each one by a space, " stageEditorShearColorsPrompt: "Enter sheep colors separating each one by a space, <cancel>"
stageEditorShearAmountsPrompt: "Enter shear amounts separating each one by a space, " stageEditorShearAmountsPrompt: "Enter shear amounts separating each one by a space, <cancel>"
stageEditorEventsPrompt: "Enter an event name, or enter 'clear' to clear the event, " stageEditorEventsPrompt: "Enter an event name, or enter 'clear' to clear the event, <cancel>"
stageEditorChatEventsPrompt: "Enter an event name to add, or enter 'clear' to clear all chat events, " stageEditorChatEventsPrompt: "Enter an event name to add, or enter 'clear' to clear all chat events, <cancel>"
stageEditorChatEventsTriggerPrompt: "Enter a chat trigger for" stageEditorChatEventsTriggerPrompt: "%yellow%Enter a chat trigger for%aqua% <event>%yellow% <cancel>"
stageEditorCommandEventsPrompt: "Enter an event name to add, or enter 'clear' to clear all command events, " stageEditorCommandEventsPrompt: "Enter an event name to add, or enter 'clear' to clear all command events, <cancel>"
stageEditorCommandEventsTriggerPrompt: "Enter a command trigger for" stageEditorCommandEventsTriggerPrompt: "%yellow%Enter a command trigger for%aqua% <event>%yellow% <cancel>"
stageEditorDelayPrompt: "Enter time (in seconds), or enter 'clear' to clear the delay, " stageEditorDelayPrompt: "Enter time (in seconds), or enter 'clear' to clear the delay, <cancel>"
stageEditorDelayMessagePrompt: "Enter delay message, or enter 'clear' to clear the message, " stageEditorDelayMessagePrompt: "Enter delay message, or enter 'clear' to clear the message, <cancel>"
stageEditorScriptPrompt: "Enter script name, or enter 'clear' to clear the script, " stageEditorScriptPrompt: "Enter script name, or enter 'clear' to clear the script, <cancel>"
stageEditorStartMessagePrompt: "Enter start message, or enter 'clear' to clear the message, " stageEditorStartMessagePrompt: "Enter start message, or enter 'clear' to clear the message, <cancel>"
stageEditorCompleteMessagePrompt: "Enter complete message, or enter 'clear' to clear the message, " stageEditorCompleteMessagePrompt: "Enter complete message, or enter 'clear' to clear the message, <cancel>"
stageEditorPasswordDisplayPrompt: "Enter a password display, " stageEditorPasswordDisplayPrompt: "Enter a password display, <cancel>"
stageEditorPasswordDisplayHint: "(This is the text that will be displayed to the player as their objective)" stageEditorPasswordDisplayHint: "(This is the text that will be displayed to the player as their objective)"
stageEditorPasswordPhrasePrompt: "Enter a password phrase, " stageEditorPasswordPhrasePrompt: "Enter a password phrase, <cancel>"
stageEditorPasswordPhraseHint1: "(This is the text that a player has to say to complete the objective)" stageEditorPasswordPhraseHint1: "(This is the text that a player has to say to complete the objective)"
stageEditorPasswordPhraseHint2: "If you want multiple password phrases, separate them by a | (pipe)" stageEditorPasswordPhraseHint2: "If you want multiple password phrases, separate them by a | (pipe)"
stageEditorObjectiveOverridePrompt: "Enter objective display override, or 'clear' to clear the override, " stageEditorObjectiveOverridePrompt: "Enter objective display override, or 'clear' to clear the override, <cancel>"
stageEditorObjectiveOverrideHint: "(This override will display your own text as the objective)" stageEditorObjectiveOverrideHint: "(This override will display your own text as the objective)"
stageEditorObjectiveOverrideCleared: "Objective display override cleared." stageEditorObjectiveOverrideCleared: "Objective display override cleared."
stageEditorDeliveryAddItem: "Add item" stageEditorDeliveryAddItem: "Add item"
@ -326,7 +326,7 @@ eventEditorErrorReadingFile: "Error reading Events file."
eventEditorErrorSaving: "An error occurred while saving." eventEditorErrorSaving: "An error occurred while saving."
eventEditorDeleted: "Event deleted, Quests and Events reloaded." eventEditorDeleted: "Event deleted, Quests and Events reloaded."
eventEditorSaved: "Event saved, Quests and Events reloaded." eventEditorSaved: "Event saved, Quests and Events reloaded."
eventEditorEnterEventName: "Enter an Event name, " eventEditorEnterEventName: "Enter an Event name, <cancel>"
eventEditorDeletePrompt: "Are you sure you want to delete the Event" eventEditorDeletePrompt: "Are you sure you want to delete the Event"
eventEditorQuitWithoutSaving: "Are you sure you want to quit without saving?" eventEditorQuitWithoutSaving: "Are you sure you want to quit without saving?"
eventEditorFinishAndSave: "Are you sure you want to finish and save the Event" eventEditorFinishAndSave: "Are you sure you want to finish and save the Event"
@ -386,14 +386,14 @@ eventEditorSetWorldFirst: "You must set a world first!"
eventEditorInvalidWorld: "is not a valid world name!" eventEditorInvalidWorld: "is not a valid world name!"
eventEditorMustSetStormDuration: "You must set a storm duration!" eventEditorMustSetStormDuration: "You must set a storm duration!"
eventEditorStormCleared: "Storm data cleared." eventEditorStormCleared: "Storm data cleared."
eventEditorEnterStormWorld: "Enter a world name for the storm to occur in, " eventEditorEnterStormWorld: "Enter a world name for the storm to occur in, <cancel>"
eventEditorEnterDuration: "Enter duration (in seconds)" eventEditorEnterDuration: "Enter duration (in seconds)"
eventEditorAtLeastOneSecond: "Amount must be at least 1 second!" eventEditorAtLeastOneSecond: "Amount must be at least 1 second!"
eventEditorNotGreaterThanOneSecond: "is not greater than 1 second!" eventEditorNotGreaterThanOneSecond: "is not greater than 1 second!"
eventEditorThunder: "Event Thunder" eventEditorThunder: "Event Thunder"
eventEditorMustSetThunderDuration: "You must set a thunder duration!" eventEditorMustSetThunderDuration: "You must set a thunder duration!"
eventEditorThunderCleared: "Thunder data cleared." eventEditorThunderCleared: "Thunder data cleared."
eventEditorEnterThunderWorld: "Enter a world name for the thunder to occur in, " eventEditorEnterThunderWorld: "Enter a world name for the thunder to occur in, <cancel>"
eventEditorEffects: "Event Effects" eventEditorEffects: "Event Effects"
eventEditorAddEffect: "Add effect" eventEditorAddEffect: "Add effect"
eventEditorAddEffectLocation: "Add effect location" eventEditorAddEffectLocation: "Add effect location"
@ -401,7 +401,7 @@ eventEditorNoEffects: "No effects set"
eventEditorMustAddEffects: "You must add effects first!" eventEditorMustAddEffects: "You must add effects first!"
eventEditorInvalidEffect: "is not a valid effect name!" eventEditorInvalidEffect: "is not a valid effect name!"
eventEditorEffectsCleared: "Event effects cleared." eventEditorEffectsCleared: "Event effects cleared."
eventEditorEffectLocationPrompt: "Right-click on a block to play an effect at, then enter 'add' to add it to the list, " eventEditorEffectLocationPrompt: "Right-click on a block to play an effect at, then enter 'add' to add it to the list, <cancel>"
eventEditorMobSpawns: "Event Mob Spawns" eventEditorMobSpawns: "Event Mob Spawns"
eventEditorAddMobTypes: "Add mob" eventEditorAddMobTypes: "Add mob"
eventEditorNoTypesSet: "(No type set)" eventEditorNoTypesSet: "(No type set)"
@ -440,26 +440,26 @@ eventEditorPotionsCleared: "Potion effects cleared."
eventEditorInvalidPotionType: "is not a valid potion effect type!" eventEditorInvalidPotionType: "is not a valid potion effect type!"
eventEditorEnterNPCId: "Enter NPC ID (or -1 to cancel)" eventEditorEnterNPCId: "Enter NPC ID (or -1 to cancel)"
eventEditorNoNPCExists: "No NPC exists with that id!" eventEditorNoNPCExists: "No NPC exists with that id!"
eventEditorLightningPrompt: "Right-click on a block to spawn a lightning strike at, then enter 'add' to add it to the list, or enter 'clear' to clear the locations list, " eventEditorLightningPrompt: "Right-click on a block to spawn a lightning strike at, then enter 'add' to add it to the list, or enter 'clear' to clear the locations list, <cancel>"
eventEditorExplosionPrompt: "Right-click on a block to spawn an explosion at, then enter 'add' to add it to the list, or enter 'clear' to clear the explosions list, " eventEditorExplosionPrompt: "Right-click on a block to spawn an explosion at, then enter 'add' to add it to the list, or enter 'clear' to clear the explosions list, <cancel>"
eventEditorSelectBlockFirst: "You must select a block first." eventEditorSelectBlockFirst: "You must select a block first."
eventEditorSetMessagePrompt: "Enter message, or enter 'none' to delete, " eventEditorSetMessagePrompt: "Enter message, or enter 'none' to delete, (<cancel>)"
eventEditorSetMobTypesPrompt: "Enter mob name, " eventEditorSetMobTypesPrompt: "Enter mob name, <cancel>"
eventEditorSetMobAmountsPrompt: "Enter mob amount, " eventEditorSetMobAmountsPrompt: "Enter mob amount, <cancel>"
eventEditorSetMobNamePrompt: "Enter the name for this mob, " eventEditorSetMobNamePrompt: "Enter the name for this mob, <cancel>"
eventEditorSetMobLocationPrompt: "Right-click on a block to select it, then enter 'add' to add it to the mob spawn location list, " eventEditorSetMobLocationPrompt: "Right-click on a block to select it, then enter 'add' to add it to the mob spawn location list, <cancel>"
eventEditorSetPotionEffectsPrompt: "Enter potion effect types separating each one by a space, " eventEditorSetPotionEffectsPrompt: "Enter potion effect types separating each one by a space, <cancel>"
eventEditorSetPotionDurationsPrompt: "Enter effect durations (in milliseconds) separating each one by a space, " eventEditorSetPotionDurationsPrompt: "Enter effect durations (in milliseconds) separating each one by a space, <cancel>"
eventEditorSetPotionMagnitudesPrompt: "Enter potion effect magnitudes separating each one by a space, " eventEditorSetPotionMagnitudesPrompt: "Enter potion effect magnitudes separating each one by a space, <cancel>"
eventEditorSetHungerPrompt: "Enter hunger level, or -1 to clear" eventEditorSetHungerPrompt: "Enter hunger level, or -1 to clear"
eventEditorHungerLevelAtLeastZero: "Hunger level must be at least 0!" eventEditorHungerLevelAtLeastZero: "Hunger level must be at least 0!"
eventEditorSetSaturationPrompt: "Enter saturation level, or -1 to clear" eventEditorSetSaturationPrompt: "Enter saturation level, or -1 to clear"
eventEditorSaturationLevelAtLeastZero: "Saturation level must be at least 0!" eventEditorSaturationLevelAtLeastZero: "Saturation level must be at least 0!"
eventEditorSetHealthPrompt: "Enter health level, or -1 to clear" eventEditorSetHealthPrompt: "Enter health level, or -1 to clear"
eventEditorHealthLevelAtLeastZero: "Health level must be at least 0!" eventEditorHealthLevelAtLeastZero: "Health level must be at least 0!"
eventEditorSetTeleportPrompt: "Right-click on a block to teleport the player to, then enter 'done' to finish, or enter 'clear' to clear the teleport location, " eventEditorSetTeleportPrompt: "Right-click on a block to teleport the player to, then enter 'done' to finish, or enter 'clear' to clear the teleport location, <cancel>"
eventEditorCommandsNote: "Note: You may use <player> to refer to the player's name." eventEditorCommandsNote: "Note: You may use <player> to refer to the player's name."
eventEditorSetCommandsPrompt: "Enter commands separating each one by a comma, or enter 'clear' to clear the list, " eventEditorSetCommandsPrompt: "Enter commands separating each one by a comma, or enter 'clear' to clear the list, <cancel>"
reqSetMoney: "Set money requirement" reqSetMoney: "Set money requirement"
reqSetQuestPoints: "Set Quest Points requirement" reqSetQuestPoints: "Set Quest Points requirement"
reqSetItem: "Set item requirements" reqSetItem: "Set item requirements"
@ -477,15 +477,15 @@ reqHeroesSetSecondary: "Set Secondary Class"
reqMoneyPrompt: "Enter amount of <money>, or 0 to clear the money requirement, or -1 to cancel" reqMoneyPrompt: "Enter amount of <money>, or 0 to clear the money requirement, or -1 to cancel"
reqQuestPointsPrompt: "Enter amount of Quest Points, or 0 to clear the Quest Point requirement, or -1 to cancel" reqQuestPointsPrompt: "Enter amount of Quest Points, or 0 to clear the Quest Point requirement, or -1 to cancel"
reqQuestListTitle: "- Quests Available -" reqQuestListTitle: "- Quests Available -"
reqQuestPrompt: "Enter a list of Quest names separating each one by a <comma>, or enter 'clear' to clear the list, " reqQuestPrompt: "Enter a list of Quest names separating each one by a <comma>, or enter 'clear' to clear the list, <cancel>"
reqRemoveItemsPrompt: "Enter a list of true/false values, separating each one by a space, " reqRemoveItemsPrompt: "Enter a list of true/false values, separating each one by a space, <cancel>"
reqPermissionsPrompt: "Enter permission requirements separating each one by a space, or enter 'clear' to clear the list, " reqPermissionsPrompt: "Enter permission requirements separating each one by a space, or enter 'clear' to clear the list, <cancel>"
reqCustomPrompt: "Enter the name of a custom requirement to add, or enter 'clear' to clear all custom requirements, " reqCustomPrompt: "Enter the name of a custom requirement to add, or enter 'clear' to clear all custom requirements, <cancel>"
reqMcMMOPrompt: "Enter mcMMO skills, separating each one by a space, or enter 'clear' to clear the list, " reqMcMMOPrompt: "Enter mcMMO skills, separating each one by a space, or enter 'clear' to clear the list, <cancel>"
reqMcMMOAmountsPrompt: "Enter mcMMO skill amounts, separating each one by a space, or enter 'clear' to clear the list, " reqMcMMOAmountsPrompt: "Enter mcMMO skill amounts, separating each one by a space, or enter 'clear' to clear the list, <cancel>"
reqHeroesPrimaryPrompt: "Enter a Heroes Primary Class name, or enter 'clear' to clear the requirement, " reqHeroesPrimaryPrompt: "Enter a Heroes Primary Class name, or enter 'clear' to clear the requirement, <cancel>"
reqHeroesSecondaryPrompt: "Enter a Heroes Secondary Class name, or enter 'clear' to clear the requirement, " reqHeroesSecondaryPrompt: "Enter a Heroes Secondary Class name, or enter 'clear' to clear the requirement, <cancel>"
reqFailMessagePrompt: "Enter fail requirements message, " reqFailMessagePrompt: "Enter fail requirements message, <cancel>"
reqAddItem: "Add item" reqAddItem: "Add item"
reqSetRemoveItems: "Set remove items" reqSetRemoveItems: "Set remove items"
reqNoItemsSet: "No items set" reqNoItemsSet: "No items set"
@ -528,16 +528,16 @@ rewSetHeroesClasses: "Set classes"
rewSetHeroesAmounts: "Set experience amounts" rewSetHeroesAmounts: "Set experience amounts"
rewMoneyPrompt: "Enter amount of <money>, or 0 to clear the money reward, or -1 to cancel" rewMoneyPrompt: "Enter amount of <money>, or 0 to clear the money reward, or -1 to cancel"
rewExperiencePrompt: "Enter amount of experience, or 0 to clear the experience reward, or -1 to cancel" rewExperiencePrompt: "Enter amount of experience, or 0 to clear the experience reward, or -1 to cancel"
rewCommandPrompt: "Enter command rewards separating each one by a <comma>, or enter 'clear' to clear the list, " rewCommandPrompt: "Enter command rewards separating each one by a <comma>, or enter 'clear' to clear the list, <cancel>"
rewCommandPromptHint: 'Note: You may put <player> to specify the player who completed the Quest. e.g. smite <player>' rewCommandPromptHint: 'Note: You may put <player> to specify the player who completed the Quest. e.g. smite <player>'
rewPermissionsPrompt: "Enter permission rewards separating each one by a space, or enter 'clear' to clear the list, " rewPermissionsPrompt: "Enter permission rewards separating each one by a space, or enter 'clear' to clear the list, <cancel>"
rewQuestPointsPrompt: "Enter amount of Quest Points, or 0 to clear the Quest Point reward, or -1 to cancel" rewQuestPointsPrompt: "Enter amount of Quest Points, or 0 to clear the Quest Point reward, or -1 to cancel"
rewMcMMOPrompt: "Enter mcMMO skills, separating each one by a space, " rewMcMMOPrompt: "Enter mcMMO skills, separating each one by a space, <cancel>"
rewMcMMOPromptHint: "Note: Typing 'All' will give levels to all skills." rewMcMMOPromptHint: "Note: Typing 'All' will give levels to all skills."
rewHeroesClassesPrompt: "Enter Heroes classes separating each one by a space, " rewHeroesClassesPrompt: "Enter Heroes classes separating each one by a space, <cancel>"
rewHeroesExperiencePrompt: "Enter experience amounts (numbers, decimals are allowed) separating each one by a space, " rewHeroesExperiencePrompt: "Enter experience amounts (numbers, decimals are allowed) separating each one by a space, <cancel>"
rewPhatLootsPrompt: "Enter PhatLoots separating each one by a space, or enter 'clear' to clear the list, " rewPhatLootsPrompt: "Enter PhatLoots separating each one by a space, or enter 'clear' to clear the list, <cancel>"
rewCustomRewardPrompt: "Enter the name of a custom reward to add, or enter 'clear' to clear all custom rewards, " rewCustomRewardPrompt: "Enter the name of a custom reward to add, or enter 'clear' to clear all custom rewards, <cancel>"
rewItemsCleared: "Item rewards cleared." rewItemsCleared: "Item rewards cleared."
rewNoMcMMOSkills: "No skills set" rewNoMcMMOSkills: "No skills set"
rewNoHeroesClasses: "No classes set" rewNoHeroesClasses: "No classes set"
@ -561,13 +561,13 @@ itemCreateSetDurab: "Set durability"
itemCreateSetEnchs: "Add/clear enchantments" itemCreateSetEnchs: "Add/clear enchantments"
itemCreateSetDisplay: "Set display name" itemCreateSetDisplay: "Set display name"
itemCreateSetLore: "Set lore" itemCreateSetLore: "Set lore"
itemCreateEnterName: "Enter an item name, " itemCreateEnterName: "Enter an item name, <cancel>"
itemCreateEnterAmount: "Enter item amount (max. 64), " itemCreateEnterAmount: "Enter item amount (max. 64), <cancel>"
itemCreateEnterDurab: "Enter item durability, or 'clear' to clear the data, " itemCreateEnterDurab: "Enter item durability, or 'clear' to clear the data, <cancel>"
itemCreateEnterEnch: "Enter an enchantment name, or 'clear' to clear the enchantments, " itemCreateEnterEnch: "Enter an enchantment name, or 'clear' to clear the enchantments, <cancel>"
itemCreateEnterLevel: "Enter a level (number) for <enchantment>" itemCreateEnterLevel: "Enter a level (number) for <enchantment>"
itemCreateEnterDisplay: "Enter item display name, or 'clear' to clear the display name, " itemCreateEnterDisplay: "Enter item display name, or 'clear' to clear the display name, <cancel>"
itemCreateEnterLore: "Enter item lore, separating each line by a semi-colon ; or 'clear' to clear the lore, " itemCreateEnterLore: "Enter item lore, separating each line by a semi-colon ; or 'clear' to clear the lore, <cancel>"
itemCreateLoaded: "Item loaded." itemCreateLoaded: "Item loaded."
itemCreateNoItem: "No item in hand!" itemCreateNoItem: "No item in hand!"
itemCreateNoName: "You must set a name first!" itemCreateNoName: "You must set a name first!"
@ -635,9 +635,9 @@ effGhastShoot: "Sound of a Ghast firing"
effGhastShriek: "Sound of a Ghast shrieking" effGhastShriek: "Sound of a Ghast shrieking"
effZombieWood: "Sound of a Zombie chewing an iron door" effZombieWood: "Sound of a Zombie chewing an iron door"
effZombieIron: "Sound of a Zombie chewing a wooden door" effZombieIron: "Sound of a Zombie chewing a wooden door"
effEnterName: "Enter an effect name to add it to the list, " effEnterName: "Enter an effect name to add it to the list, <cancel>"
cmdCancel: "cancel" cmdCancel: "cancel"
strCancel: "or '<cancel>' to return" strCancel: "or '<command>' to return"
cmdAdd: "add" cmdAdd: "add"
cmdClear: "clear" cmdClear: "clear"
cmdNone: "none" cmdNone: "none"
@ -852,8 +852,8 @@ blocksWithin: "within <amount> blocks of"
valRequired: "Value required" valRequired: "Value required"
enchantedItem: "*Enchanted*" enchantedItem: "*Enchanted*"
experience: "Experience" experience: "Experience"
timerMessage: "<green>Time left to finish the quest/stage: <red>%s seconds" timerMessage: "%green%Time left to finish the quest/stage:%red% <time> seconds"
timerStart: "<green>You have <red>%s seconds <green>to finish this quest/stage" timerStart: "%green%You have%red% <time> seconds%green% to finish this quest/stage"
questErrorReadingFile: "Error reading Quests file." questErrorReadingFile: "Error reading Quests file."
questSaveError: "An error occurred while saving." questSaveError: "An error occurred while saving."
questBlacklisted: "You are blacklisted. Contact an admin if this is in error." questBlacklisted: "You are blacklisted. Contact an admin if this is in error."