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,7 +571,9 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener,
}
for (String s : config.getStringList("quester-blacklist")) {
questerBlacklist.add(s);
if (!s.equals("UUID")) {
questerBlacklist.add(s);
}
}
try {
@ -4760,11 +4762,14 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener,
public boolean checkQuester(UUID uuid) {
for (String s : questerBlacklist) {
if (UUID.fromString(s) != null) {
return true;
}
try {
UUID.fromString(s);
return true;
} catch (IllegalArgumentException e) {
e.printStackTrace();
}
}
return false;

View File

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