Prevent color click kick, fixes #1902 #1905

This commit is contained in:
PikaMug 2022-03-23 03:48:03 -04:00
parent 8dd848ae16
commit ea80add107

View File

@ -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);