mirror of
https://github.com/PikaMug/Quests.git
synced 2024-09-27 06:32:39 +02:00
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");
|
final StringBuilder text = new StringBuilder(ChatColor.LIGHT_PURPLE + getTitle(context) + "\n");
|
||||||
if (plugin.getCustomRequirements().isEmpty()) {
|
if (plugin.getCustomRequirements().isEmpty()) {
|
||||||
text.append(ChatColor.DARK_AQUA).append(ChatColor.UNDERLINE)
|
text.append(ChatColor.DARK_AQUA).append(ChatColor.UNDERLINE)
|
||||||
.append("https://pikamug.gitbook.io/quests/casual/modules\n").append(ChatColor.DARK_PURPLE)
|
.append("https://pikamug.gitbook.io/quests/casual/modules\n");
|
||||||
.append("(").append(Lang.get("stageEditorNoModules")).append(") ");
|
text.append(ChatColor.RED).append("(").append(Lang.get("stageEditorNoModules")).append(")\n");
|
||||||
} else {
|
} else {
|
||||||
for (final CustomRequirement cr : plugin.getCustomRequirements()) {
|
for (final CustomRequirement cr : plugin.getCustomRequirements()) {
|
||||||
if (cr.getModuleName().equals(moduleName)) {
|
if (cr.getModuleName().equals(moduleName)) {
|
||||||
@ -1598,12 +1598,12 @@ public class RequirementsPrompt extends QuestsEditorNumericPrompt {
|
|||||||
final TextComponent component = new TextComponent(getTitle(context) + "\n");
|
final TextComponent component = new TextComponent(getTitle(context) + "\n");
|
||||||
component.setColor(net.md_5.bungee.api.ChatColor.LIGHT_PURPLE);
|
component.setColor(net.md_5.bungee.api.ChatColor.LIGHT_PURPLE);
|
||||||
final TextComponent line = new TextComponent("");
|
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");
|
final TextComponent link = new TextComponent("https://pikamug.gitbook.io/quests/casual/modules\n");
|
||||||
link.setColor(net.md_5.bungee.api.ChatColor.DARK_AQUA);
|
link.setColor(net.md_5.bungee.api.ChatColor.DARK_AQUA);
|
||||||
link.setUnderlined(true);
|
link.setUnderlined(true);
|
||||||
line.addExtra(link);
|
line.addExtra(link);
|
||||||
line.addExtra(ChatColor.DARK_AQUA + "(" + Lang.get("stageEditorNoModules") + ") ");
|
line.addExtra(ChatColor.RED + "(" + Lang.get("stageEditorNoModules") + ")\n");
|
||||||
} else {
|
} else {
|
||||||
for (final CustomRequirement co : plugin.getCustomRequirements()) {
|
for (final CustomRequirement co : plugin.getCustomRequirements()) {
|
||||||
if (co.getModuleName().equals(moduleName)) {
|
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");
|
final StringBuilder text = new StringBuilder(ChatColor.LIGHT_PURPLE + getTitle(context) + "\n");
|
||||||
if (plugin.getCustomRewards().isEmpty()) {
|
if (plugin.getCustomRewards().isEmpty()) {
|
||||||
text.append(ChatColor.DARK_AQUA).append(ChatColor.UNDERLINE)
|
text.append(ChatColor.DARK_AQUA).append(ChatColor.UNDERLINE)
|
||||||
.append("https://pikamug.gitbook.io/quests/casual/modules\n").append(ChatColor.DARK_PURPLE)
|
.append("https://pikamug.gitbook.io/quests/casual/modules\n");
|
||||||
.append("(").append(Lang.get("stageEditorNoModules")).append(") ");
|
text.append(ChatColor.RED).append("(").append(Lang.get("stageEditorNoModules")).append(")\n");
|
||||||
} else {
|
} else {
|
||||||
for (final CustomReward cr : plugin.getCustomRewards()) {
|
for (final CustomReward cr : plugin.getCustomRewards()) {
|
||||||
if (cr.getModuleName().equals(moduleName)) {
|
if (cr.getModuleName().equals(moduleName)) {
|
||||||
@ -1925,12 +1925,12 @@ public class RewardsPrompt extends QuestsEditorNumericPrompt {
|
|||||||
final TextComponent component = new TextComponent(getTitle(context) + "\n");
|
final TextComponent component = new TextComponent(getTitle(context) + "\n");
|
||||||
component.setColor(net.md_5.bungee.api.ChatColor.LIGHT_PURPLE);
|
component.setColor(net.md_5.bungee.api.ChatColor.LIGHT_PURPLE);
|
||||||
final TextComponent line = new TextComponent("");
|
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");
|
final TextComponent link = new TextComponent("https://pikamug.gitbook.io/quests/casual/modules\n");
|
||||||
link.setColor(net.md_5.bungee.api.ChatColor.DARK_AQUA);
|
link.setColor(net.md_5.bungee.api.ChatColor.DARK_AQUA);
|
||||||
link.setUnderlined(true);
|
link.setUnderlined(true);
|
||||||
line.addExtra(link);
|
line.addExtra(link);
|
||||||
line.addExtra(ChatColor.DARK_AQUA + "(" + Lang.get("stageEditorNoModules") + ") ");
|
line.addExtra(ChatColor.RED + "(" + Lang.get("stageEditorNoModules") + ")\n");
|
||||||
} else {
|
} else {
|
||||||
for (final CustomReward co : plugin.getCustomRewards()) {
|
for (final CustomReward co : plugin.getCustomRewards()) {
|
||||||
if (co.getModuleName().equals(moduleName)) {
|
if (co.getModuleName().equals(moduleName)) {
|
||||||
|
@ -2500,8 +2500,7 @@ public class StageMainPrompt extends QuestsEditorNumericPrompt {
|
|||||||
if (plugin.getCustomObjectives().isEmpty()) {
|
if (plugin.getCustomObjectives().isEmpty()) {
|
||||||
text.append(ChatColor.DARK_AQUA).append(ChatColor.UNDERLINE)
|
text.append(ChatColor.DARK_AQUA).append(ChatColor.UNDERLINE)
|
||||||
.append("https://pikamug.gitbook.io/quests/casual/modules\n");
|
.append("https://pikamug.gitbook.io/quests/casual/modules\n");
|
||||||
text.append(ChatColor.DARK_PURPLE).append("(").append(Lang.get("stageEditorNoModules"))
|
text.append(ChatColor.RED).append("(").append(Lang.get("stageEditorNoModules")).append(")\n");
|
||||||
.append(") ");
|
|
||||||
} else {
|
} else {
|
||||||
for (final ICustomObjective co : plugin.getCustomObjectives()) {
|
for (final ICustomObjective co : plugin.getCustomObjectives()) {
|
||||||
if (co.getModuleName().equals(moduleName)) {
|
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.setColor(net.md_5.bungee.api.ChatColor.DARK_AQUA);
|
||||||
link.setUnderlined(true);
|
link.setUnderlined(true);
|
||||||
line.addExtra(link);
|
line.addExtra(link);
|
||||||
line.addExtra(ChatColor.DARK_AQUA + "(" + Lang.get("stageEditorNoModules") + ") ");
|
line.addExtra(ChatColor.RED + "(" + Lang.get("stageEditorNoModules") + ")\n");
|
||||||
} else {
|
} else {
|
||||||
for (final ICustomObjective co : plugin.getCustomObjectives()) {
|
for (final ICustomObjective co : plugin.getCustomObjectives()) {
|
||||||
if (co.getModuleName().equals(moduleName)) {
|
if (co.getModuleName().equals(moduleName)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user