mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-26 04:36:06 +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")) {
|
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();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -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"
|
Loading…
Reference in New Issue
Block a user