Descriptive notice for Trial Mode, fixes #1737

This commit is contained in:
PikaMug 2021-07-29 05:56:05 -04:00
parent 6562e801e9
commit 0ceb49236e
4 changed files with 10 additions and 4 deletions

View File

@ -207,7 +207,8 @@ public class ActionMainPrompt extends ActionsEditorNumericPrompt {
if (!plugin.hasLimitedAccess(context.getForWhom())) {
return new ActionDenizenPrompt(context);
} else {
context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("noPermission"));
context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("modeDeny")
.replace("mode", Lang.get("trialMode")));
return new ActionMainPrompt(context);
}
case 8:
@ -1032,7 +1033,8 @@ public class ActionMainPrompt extends ActionsEditorNumericPrompt {
public Prompt acceptInput(final ConversationContext context, final String input) {
if (input.equalsIgnoreCase("1") || input.equalsIgnoreCase(Lang.get("yesWord"))) {
if (plugin.hasLimitedAccess(context.getForWhom()) && !plugin.getSettings().canTrialSave()) {
context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("noPermission"));
context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("modeDeny")
.replace("mode", Lang.get("trialMode")));
return new ActionMainPrompt(context);
}
plugin.getActionFactory().saveAction(context);

View File

@ -527,7 +527,8 @@ public class ConditionMainPrompt extends ConditionsEditorNumericPrompt {
public Prompt acceptInput(final ConversationContext context, final String input) {
if (input.equalsIgnoreCase("1") || input.equalsIgnoreCase(Lang.get("yesWord"))) {
if (plugin.hasLimitedAccess(context.getForWhom()) && !plugin.getSettings().canTrialSave()) {
context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("noPermission"));
context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("modeDeny")
.replace("mode", Lang.get("trialMode")));
return new ConditionMainPrompt(context);
}
plugin.getConditionFactory().saveCondition(context);

View File

@ -814,7 +814,8 @@ public class QuestMainPrompt extends QuestsEditorNumericPrompt {
public Prompt acceptInput(final ConversationContext context, final String input) {
if (input.equalsIgnoreCase("1") || input.equalsIgnoreCase(Lang.get("yesWord"))) {
if (plugin.hasLimitedAccess(context.getForWhom()) && !plugin.getSettings().canTrialSave()) {
context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("noPermission"));
context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("modeDeny")
.replace("mode", Lang.get("trialMode")));
return new QuestMainPrompt(context);
}
if (context.getSessionData(CK.Q_ASK_MESSAGE) == null) {

View File

@ -801,6 +801,8 @@ timePrompt: "Enter amount of time (in seconds), <clear>, <cancel>"
timerMessage: "Time left to finish the quest/stage: <time> seconds"
timerStart: "You have <time> seconds to finish this quest/stage"
noPermission: "You do not have permission to do that."
trialMode: "Trial Mode"
modeDeny: "You are unable to do that in <mode>."
duplicateEditor: "You are already using an editor!"
difference: "The difference is '<data>'."
notInstalled: "Not installed"