mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-25 20:25:45 +01:00
Disregard default quester-blacklist node value
This commit is contained in:
parent
4d51abda67
commit
e3f17616c2
@ -571,8 +571,10 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener,
|
||||
}
|
||||
|
||||
for (String s : config.getStringList("quester-blacklist")) {
|
||||
if (!s.equals("UUID")) {
|
||||
questerBlacklist.add(s);
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
config.save(new File(this.getDataFolder(), "config.yml"));
|
||||
@ -4761,8 +4763,11 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener,
|
||||
|
||||
for (String s : questerBlacklist) {
|
||||
|
||||
if (UUID.fromString(s) != null) {
|
||||
try {
|
||||
UUID.fromString(s);
|
||||
return true;
|
||||
} catch (IllegalArgumentException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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