Disregard default quester-blacklist node value

This commit is contained in:
HappyPikachu 2015-02-05 12:04:59 -05:00
parent 4d51abda67
commit e3f17616c2
2 changed files with 14 additions and 9 deletions

View File

@ -571,8 +571,10 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener,
} }
for (String s : config.getStringList("quester-blacklist")) { for (String s : config.getStringList("quester-blacklist")) {
if (!s.equals("UUID")) {
questerBlacklist.add(s); questerBlacklist.add(s);
} }
}
try { try {
config.save(new File(this.getDataFolder(), "config.yml")); config.save(new File(this.getDataFolder(), "config.yml"));
@ -4761,8 +4763,11 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener,
for (String s : questerBlacklist) { for (String s : questerBlacklist) {
if (UUID.fromString(s) != null) { try {
UUID.fromString(s);
return true; return true;
} catch (IllegalArgumentException e) {
e.printStackTrace();
} }
} }

View File

@ -15,6 +15,6 @@ max-quests: 0
convert-data-on-startup: false convert-data-on-startup: false
quester-blacklist: quester-blacklist:
- "UUID" - "UUID"
- "somePrefix*" - "UUID"
- "*someSuffix" - "UUID"
- "*someRegex*" - "UUID"