mirror of https://github.com/PikaMug/Quests.git
Re-add clickable accept prompt, fixes #2017
This commit is contained in:
parent
4b50760c2e
commit
3423424908
|
@ -701,11 +701,11 @@ public class Quests extends JavaPlugin implements QuestsAPI {
|
|||
final TextComponent component = new TextComponent("");
|
||||
component.addExtra(ChatColor.YELLOW + getQueryText(context) + " " + ChatColor.GREEN);
|
||||
final TextComponent yes = new TextComponent(getSelectionText(context, 1));
|
||||
yes.setClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, Lang.get("yesWord")));
|
||||
yes.setClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/quests choice " + Lang.get("yesWord")));
|
||||
component.addExtra(yes);
|
||||
component.addExtra(ChatColor.RESET + " / ");
|
||||
final TextComponent no = new TextComponent(getSelectionText(context, 2));
|
||||
no.setClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, Lang.get("noWord")));
|
||||
no.setClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/quests choice " + Lang.get("noWord")));
|
||||
component.addExtra(no);
|
||||
|
||||
((Player)context.getForWhom()).spigot().sendMessage(component);
|
||||
|
|
Loading…
Reference in New Issue