mirror of
https://github.com/PikaMug/Quests.git
synced 2025-01-23 08:41:29 +01:00
Descriptive notice for Trial Mode, fixes #1737
This commit is contained in:
parent
6562e801e9
commit
0ceb49236e
@ -207,7 +207,8 @@ public class ActionMainPrompt extends ActionsEditorNumericPrompt {
|
|||||||
if (!plugin.hasLimitedAccess(context.getForWhom())) {
|
if (!plugin.hasLimitedAccess(context.getForWhom())) {
|
||||||
return new ActionDenizenPrompt(context);
|
return new ActionDenizenPrompt(context);
|
||||||
} else {
|
} 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);
|
return new ActionMainPrompt(context);
|
||||||
}
|
}
|
||||||
case 8:
|
case 8:
|
||||||
@ -1032,7 +1033,8 @@ public class ActionMainPrompt extends ActionsEditorNumericPrompt {
|
|||||||
public Prompt acceptInput(final ConversationContext context, final String input) {
|
public Prompt acceptInput(final ConversationContext context, final String input) {
|
||||||
if (input.equalsIgnoreCase("1") || input.equalsIgnoreCase(Lang.get("yesWord"))) {
|
if (input.equalsIgnoreCase("1") || input.equalsIgnoreCase(Lang.get("yesWord"))) {
|
||||||
if (plugin.hasLimitedAccess(context.getForWhom()) && !plugin.getSettings().canTrialSave()) {
|
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);
|
return new ActionMainPrompt(context);
|
||||||
}
|
}
|
||||||
plugin.getActionFactory().saveAction(context);
|
plugin.getActionFactory().saveAction(context);
|
||||||
|
@ -527,7 +527,8 @@ public class ConditionMainPrompt extends ConditionsEditorNumericPrompt {
|
|||||||
public Prompt acceptInput(final ConversationContext context, final String input) {
|
public Prompt acceptInput(final ConversationContext context, final String input) {
|
||||||
if (input.equalsIgnoreCase("1") || input.equalsIgnoreCase(Lang.get("yesWord"))) {
|
if (input.equalsIgnoreCase("1") || input.equalsIgnoreCase(Lang.get("yesWord"))) {
|
||||||
if (plugin.hasLimitedAccess(context.getForWhom()) && !plugin.getSettings().canTrialSave()) {
|
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);
|
return new ConditionMainPrompt(context);
|
||||||
}
|
}
|
||||||
plugin.getConditionFactory().saveCondition(context);
|
plugin.getConditionFactory().saveCondition(context);
|
||||||
|
@ -814,7 +814,8 @@ public class QuestMainPrompt extends QuestsEditorNumericPrompt {
|
|||||||
public Prompt acceptInput(final ConversationContext context, final String input) {
|
public Prompt acceptInput(final ConversationContext context, final String input) {
|
||||||
if (input.equalsIgnoreCase("1") || input.equalsIgnoreCase(Lang.get("yesWord"))) {
|
if (input.equalsIgnoreCase("1") || input.equalsIgnoreCase(Lang.get("yesWord"))) {
|
||||||
if (plugin.hasLimitedAccess(context.getForWhom()) && !plugin.getSettings().canTrialSave()) {
|
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);
|
return new QuestMainPrompt(context);
|
||||||
}
|
}
|
||||||
if (context.getSessionData(CK.Q_ASK_MESSAGE) == null) {
|
if (context.getSessionData(CK.Q_ASK_MESSAGE) == null) {
|
||||||
|
@ -801,6 +801,8 @@ timePrompt: "Enter amount of time (in seconds), <clear>, <cancel>"
|
|||||||
timerMessage: "Time left to finish the quest/stage: <time> seconds"
|
timerMessage: "Time left to finish the quest/stage: <time> seconds"
|
||||||
timerStart: "You have <time> seconds to finish this quest/stage"
|
timerStart: "You have <time> seconds to finish this quest/stage"
|
||||||
noPermission: "You do not have permission to do that."
|
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!"
|
duplicateEditor: "You are already using an editor!"
|
||||||
difference: "The difference is '<data>'."
|
difference: "The difference is '<data>'."
|
||||||
notInstalled: "Not installed"
|
notInstalled: "Not installed"
|
||||||
|
Loading…
Reference in New Issue
Block a user