From ea80add10752c5b77ed97a571695436357c43a39 Mon Sep 17 00:00:00 2001 From: PikaMug <2267126+PikaMug@users.noreply.github.com> Date: Wed, 23 Mar 2022 03:48:03 -0400 Subject: [PATCH] Prevent color click kick, fixes #1902 #1905 --- .../main/java/me/blackvein/quests/convo/QuestsStringPrompt.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/main/java/me/blackvein/quests/convo/QuestsStringPrompt.java b/api/src/main/java/me/blackvein/quests/convo/QuestsStringPrompt.java index 161365eb0..ad265181f 100644 --- a/api/src/main/java/me/blackvein/quests/convo/QuestsStringPrompt.java +++ b/api/src/main/java/me/blackvein/quests/convo/QuestsStringPrompt.java @@ -71,7 +71,7 @@ public abstract class QuestsStringPrompt extends StringPrompt { for (int i = 0; i < list.size(); i++) { final TextComponent questName = new TextComponent(list.get(i)); questName.setColor(ChatColor.AQUA); - questName.setClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, list.get(i))); + questName.setClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, ChatColor.stripColor(list.get(i)))); component.addExtra(questName); if (i < (list.size() - 1)) { component.addExtra(separator);