diff --git a/main/src/main/java/me/blackvein/quests/Quest.java b/main/src/main/java/me/blackvein/quests/Quest.java index b372855ad..1dfee5737 100644 --- a/main/src/main/java/me/blackvein/quests/Quest.java +++ b/main/src/main/java/me/blackvein/quests/Quest.java @@ -822,7 +822,7 @@ public class Quest { } /** - * Checks if quester is in WorldGuard region + * Checks if quester is in WorldGuard region start * * @param quester The quester to check * @return true if quester is in region @@ -832,7 +832,7 @@ public class Quest { } /** - * Checks if player is in WorldGuard region + * Checks if player is in WorldGuard region start * * @param player The player to check * @return true if player is in region diff --git a/main/src/main/java/me/blackvein/quests/Quests.java b/main/src/main/java/me/blackvein/quests/Quests.java index 91156e19d..c722af077 100644 --- a/main/src/main/java/me/blackvein/quests/Quests.java +++ b/main/src/main/java/me/blackvein/quests/Quests.java @@ -1682,8 +1682,10 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener List temp = new LinkedList(); for (String name : names) { boolean done = false; - for (String string : questsSection.getKeys(false)) { - if (config.getString("quests." + string + ".name").equalsIgnoreCase(name)) { + for (String id : questsSection.getKeys(false)) { + String name2 = config.getString("quests." + id + ".name"); + if (name2.equalsIgnoreCase(name) + || ChatColor.stripColor(name2).equalsIgnoreCase(ChatColor.stripColor(name))) { temp.add(name); done = true; break; @@ -1711,8 +1713,10 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener List temp = new LinkedList(); for (String name : names) { boolean done = false; - for (String string : questsSection.getKeys(false)) { - if (config.getString("quests." + string + ".name").equalsIgnoreCase(name)) { + for (String id : questsSection.getKeys(false)) { + String name2 = config.getString("quests." + id + ".name"); + if (name2.equalsIgnoreCase(name) + || ChatColor.stripColor(name2).equalsIgnoreCase(ChatColor.stripColor(name))) { temp.add(name); done = true; break;