mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-22 18:45:27 +01:00
Disregard default quester-blacklist node value
This commit is contained in:
parent
4d51abda67
commit
e3f17616c2
@ -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;
|
||||
|
@ -15,6 +15,6 @@ max-quests: 0
|
||||
convert-data-on-startup: false
|
||||
quester-blacklist:
|
||||
- "UUID"
|
||||
- "somePrefix*"
|
||||
- "*someSuffix"
|
||||
- "*someRegex*"
|
||||
- "UUID"
|
||||
- "UUID"
|
||||
- "UUID"
|
Loading…
Reference in New Issue
Block a user