Adjust custom module prompts

This commit is contained in:
PikaMug 2022-04-22 04:25:15 -04:00
parent c1ef9b8fb2
commit 002c4607cc
4 changed files with 13 additions and 13 deletions

View File

@ -15,7 +15,7 @@
<repositories>
<repository>
<!-- CitizensBooks, DungeonsXL, GPS, LocaleLib, mcMMO Classic, PhatLoots -->
<!-- CitizensBooks, DungeonsXL, GPS, LocaleLib, mcMMO Classic, PhatLoots, Unite -->
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
@ -126,7 +126,7 @@
<dependency>
<groupId>com.github.PikaMug</groupId>
<artifactId>Unite</artifactId>
<version>1.1.2</version>
<version>1.1.3</version>
<scope>provided</scope>
</dependency>
<dependency>

View File

@ -1478,8 +1478,8 @@ public class RequirementsPrompt extends QuestsEditorNumericPrompt {
text.append(ChatColor.DARK_AQUA).append(ChatColor.UNDERLINE)
.append("https://pikamug.gitbook.io/quests/casual/modules").append(ChatColor.RESET)
.append("\n");
text.append(ChatColor.DARK_PURPLE).append("(").append(Lang.get("stageEditorNoModules"))
.append(") ");
text.append(ChatColor.RED).append("(").append(Lang.get("stageEditorNoModules")).append(")")
.append("\n");
} else {
for (final String name : plugin.getCustomRequirements().stream()
.map(CustomRequirement::getModuleName).collect(Collectors.toCollection(TreeSet::new))) {
@ -1491,12 +1491,12 @@ public class RequirementsPrompt extends QuestsEditorNumericPrompt {
final TextComponent component = new TextComponent(getTitle(context) + "\n");
component.setColor(net.md_5.bungee.api.ChatColor.LIGHT_PURPLE);
final TextComponent line = new TextComponent("");
if (plugin.getCustomObjectives().isEmpty()) {
if (plugin.getCustomRequirements().isEmpty()) {
final TextComponent link = new TextComponent("https://pikamug.gitbook.io/quests/casual/modules\n");
link.setColor(net.md_5.bungee.api.ChatColor.DARK_AQUA);
link.setUnderlined(true);
line.addExtra(link);
line.addExtra(ChatColor.DARK_AQUA + "(" + Lang.get("stageEditorNoModules") + ") ");
line.addExtra(ChatColor.RED + "(" + Lang.get("stageEditorNoModules") + ")\n");
} else {
for (final String name : plugin.getCustomRequirements().stream().map(CustomRequirement::getModuleName)
.collect(Collectors.toCollection(TreeSet::new))) {

View File

@ -1805,8 +1805,8 @@ public class RewardsPrompt extends QuestsEditorNumericPrompt {
text.append(ChatColor.DARK_AQUA).append(ChatColor.UNDERLINE)
.append("https://pikamug.gitbook.io/quests/casual/modules").append(ChatColor.RESET)
.append("\n");
text.append(ChatColor.DARK_PURPLE).append("(").append(Lang.get("stageEditorNoModules"))
.append(") ");
text.append(ChatColor.RED).append("(").append(Lang.get("stageEditorNoModules")).append(")")
.append("\n");
} else {
for (final String name : plugin.getCustomRewards().stream().map(CustomReward::getModuleName)
.collect(Collectors.toCollection(TreeSet::new))) {
@ -1818,12 +1818,12 @@ public class RewardsPrompt extends QuestsEditorNumericPrompt {
final TextComponent component = new TextComponent(getTitle(context) + "\n");
component.setColor(net.md_5.bungee.api.ChatColor.LIGHT_PURPLE);
final TextComponent line = new TextComponent("");
if (plugin.getCustomObjectives().isEmpty()) {
if (plugin.getCustomRewards().isEmpty()) {
final TextComponent link = new TextComponent("https://pikamug.gitbook.io/quests/casual/modules\n");
link.setColor(net.md_5.bungee.api.ChatColor.DARK_AQUA);
link.setUnderlined(true);
line.addExtra(link);
line.addExtra(ChatColor.DARK_AQUA + "(" + Lang.get("stageEditorNoModules") + ") ");
line.addExtra(ChatColor.RED + "(" + Lang.get("stageEditorNoModules") + ")\n");
} else {
for (final String name : plugin.getCustomRewards().stream().map(CustomReward::getModuleName)
.collect(Collectors.toCollection(TreeSet::new))) {

View File

@ -2392,8 +2392,8 @@ public class StageMainPrompt extends QuestsEditorNumericPrompt {
text.append(ChatColor.DARK_AQUA).append(ChatColor.UNDERLINE)
.append("https://pikamug.gitbook.io/quests/casual/modules").append(ChatColor.RESET)
.append("\n");
text.append(ChatColor.DARK_PURPLE).append("(").append(Lang.get("stageEditorNoModules"))
.append(") ");
text.append(ChatColor.RED).append("(").append(Lang.get("stageEditorNoModules")).append(")")
.append("\n");
} else {
for (final String name : plugin.getCustomObjectives().stream().map(ICustomObjective::getModuleName)
.collect(Collectors.toCollection(TreeSet::new))) {
@ -2410,7 +2410,7 @@ public class StageMainPrompt extends QuestsEditorNumericPrompt {
link.setColor(net.md_5.bungee.api.ChatColor.DARK_AQUA);
link.setUnderlined(true);
line.addExtra(link);
line.addExtra(ChatColor.DARK_AQUA + "(" + Lang.get("stageEditorNoModules") + ") ");
line.addExtra(ChatColor.RED + "(" + Lang.get("stageEditorNoModules") + ")\n");
} else {
for (final String name : plugin.getCustomObjectives().stream().map(ICustomObjective::getModuleName)
.collect(Collectors.toCollection(TreeSet::new))) {