mirror of https://github.com/PikaMug/Quests.git
Adjust custom module prompts, part 2
This commit is contained in:
parent
002c4607cc
commit
3338001a97
|
@ -1584,8 +1584,8 @@ public class RequirementsPrompt extends QuestsEditorNumericPrompt {
|
|||
final StringBuilder text = new StringBuilder(ChatColor.LIGHT_PURPLE + getTitle(context) + "\n");
|
||||
if (plugin.getCustomRequirements().isEmpty()) {
|
||||
text.append(ChatColor.DARK_AQUA).append(ChatColor.UNDERLINE)
|
||||
.append("https://pikamug.gitbook.io/quests/casual/modules\n").append(ChatColor.DARK_PURPLE)
|
||||
.append("(").append(Lang.get("stageEditorNoModules")).append(") ");
|
||||
.append("https://pikamug.gitbook.io/quests/casual/modules\n");
|
||||
text.append(ChatColor.RED).append("(").append(Lang.get("stageEditorNoModules")).append(")\n");
|
||||
} else {
|
||||
for (final CustomRequirement cr : plugin.getCustomRequirements()) {
|
||||
if (cr.getModuleName().equals(moduleName)) {
|
||||
|
@ -1598,12 +1598,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 CustomRequirement co : plugin.getCustomRequirements()) {
|
||||
if (co.getModuleName().equals(moduleName)) {
|
||||
|
|
|
@ -1911,8 +1911,8 @@ public class RewardsPrompt extends QuestsEditorNumericPrompt {
|
|||
final StringBuilder text = new StringBuilder(ChatColor.LIGHT_PURPLE + getTitle(context) + "\n");
|
||||
if (plugin.getCustomRewards().isEmpty()) {
|
||||
text.append(ChatColor.DARK_AQUA).append(ChatColor.UNDERLINE)
|
||||
.append("https://pikamug.gitbook.io/quests/casual/modules\n").append(ChatColor.DARK_PURPLE)
|
||||
.append("(").append(Lang.get("stageEditorNoModules")).append(") ");
|
||||
.append("https://pikamug.gitbook.io/quests/casual/modules\n");
|
||||
text.append(ChatColor.RED).append("(").append(Lang.get("stageEditorNoModules")).append(")\n");
|
||||
} else {
|
||||
for (final CustomReward cr : plugin.getCustomRewards()) {
|
||||
if (cr.getModuleName().equals(moduleName)) {
|
||||
|
@ -1925,12 +1925,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 CustomReward co : plugin.getCustomRewards()) {
|
||||
if (co.getModuleName().equals(moduleName)) {
|
||||
|
|
|
@ -2500,8 +2500,7 @@ public class StageMainPrompt extends QuestsEditorNumericPrompt {
|
|||
if (plugin.getCustomObjectives().isEmpty()) {
|
||||
text.append(ChatColor.DARK_AQUA).append(ChatColor.UNDERLINE)
|
||||
.append("https://pikamug.gitbook.io/quests/casual/modules\n");
|
||||
text.append(ChatColor.DARK_PURPLE).append("(").append(Lang.get("stageEditorNoModules"))
|
||||
.append(") ");
|
||||
text.append(ChatColor.RED).append("(").append(Lang.get("stageEditorNoModules")).append(")\n");
|
||||
} else {
|
||||
for (final ICustomObjective co : plugin.getCustomObjectives()) {
|
||||
if (co.getModuleName().equals(moduleName)) {
|
||||
|
@ -2519,7 +2518,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 ICustomObjective co : plugin.getCustomObjectives()) {
|
||||
if (co.getModuleName().equals(moduleName)) {
|
||||
|
|
Loading…
Reference in New Issue