diff --git a/main/src/main/java/me/blackvein/quests/convo/actions/menu/ActionMenuPrompt.java b/main/src/main/java/me/blackvein/quests/convo/actions/menu/ActionMenuPrompt.java index 0d21d4dcb..95d4b6343 100644 --- a/main/src/main/java/me/blackvein/quests/convo/actions/menu/ActionMenuPrompt.java +++ b/main/src/main/java/me/blackvein/quests/convo/actions/menu/ActionMenuPrompt.java @@ -51,7 +51,9 @@ public class ActionMenuPrompt extends ActionsEditorNumericPrompt { @Override public String getTitle(final ConversationContext context) { - return Lang.get("eventEditorTitle"); + final String title = Lang.get("eventEditorTitle"); + return title + (plugin.hasLimitedAccess(context.getForWhom()) ? ChatColor.RED + " (" + Lang.get("trialMode") + + ")" : ""); } @Override diff --git a/main/src/main/java/me/blackvein/quests/convo/conditions/menu/ConditionMenuPrompt.java b/main/src/main/java/me/blackvein/quests/convo/conditions/menu/ConditionMenuPrompt.java index 36f154a2b..e2d980177 100644 --- a/main/src/main/java/me/blackvein/quests/convo/conditions/menu/ConditionMenuPrompt.java +++ b/main/src/main/java/me/blackvein/quests/convo/conditions/menu/ConditionMenuPrompt.java @@ -51,7 +51,9 @@ public class ConditionMenuPrompt extends ConditionsEditorNumericPrompt { @Override public String getTitle(final ConversationContext context) { - return Lang.get("conditionEditorTitle"); + final String title = Lang.get("conditionEditorTitle"); + return title + (plugin.hasLimitedAccess(context.getForWhom()) ? ChatColor.RED + " (" + Lang.get("trialMode") + + ")" : ""); } @Override diff --git a/main/src/main/java/me/blackvein/quests/convo/quests/main/QuestMainPrompt.java b/main/src/main/java/me/blackvein/quests/convo/quests/main/QuestMainPrompt.java index d8b2e5517..1644ced66 100644 --- a/main/src/main/java/me/blackvein/quests/convo/quests/main/QuestMainPrompt.java +++ b/main/src/main/java/me/blackvein/quests/convo/quests/main/QuestMainPrompt.java @@ -69,9 +69,15 @@ public class QuestMainPrompt extends QuestsEditorNumericPrompt { @Override public String getTitle(final ConversationContext context) { - return Lang.get("quest") + ": " + context.getSessionData(CK.Q_NAME) + "" + ChatColor.GRAY - + (context.getSessionData(CK.Q_ID) != null ? " (" + Lang.get("id") + ":" - + context.getSessionData(CK.Q_ID) + ")": ""); + final StringBuilder title = new StringBuilder(Lang.get("quest") + ": " + context.getSessionData(CK.Q_NAME)); + + if (plugin.hasLimitedAccess(context.getForWhom())) { + title.append(ChatColor.RED).append(" (").append(Lang.get("trialMode")).append(")"); + } else if (context.getSessionData(CK.Q_ID) != null) { + title.append(ChatColor.GRAY).append(" (").append(Lang.get("id")).append(":") + .append(context.getSessionData(CK.Q_ID)).append(")"); + } + return title.toString(); } @Override diff --git a/main/src/main/java/me/blackvein/quests/convo/quests/menu/QuestMenuPrompt.java b/main/src/main/java/me/blackvein/quests/convo/quests/menu/QuestMenuPrompt.java index 127b3aabf..3782f6173 100644 --- a/main/src/main/java/me/blackvein/quests/convo/quests/menu/QuestMenuPrompt.java +++ b/main/src/main/java/me/blackvein/quests/convo/quests/menu/QuestMenuPrompt.java @@ -49,7 +49,9 @@ public class QuestMenuPrompt extends QuestsEditorNumericPrompt { @Override public String getTitle(final ConversationContext context) { - return Lang.get("questEditorTitle"); + final String title = Lang.get("questEditorTitle"); + return title + (plugin.hasLimitedAccess(context.getForWhom()) ? ChatColor.RED + " (" + Lang.get("trialMode") + + ")" : ""); } @Override