Reduce console spam from NPCs, untested, fixes #127. Bump version number

This commit is contained in:
HappyPikachu 2017-12-05 21:40:26 -05:00
parent c600e3e8d2
commit 8cb0e74b68
2 changed files with 10 additions and 8 deletions

View File

@ -3,7 +3,7 @@
<groupId>me.blackvein.quests</groupId> <groupId>me.blackvein.quests</groupId>
<artifactId>quests</artifactId> <artifactId>quests</artifactId>
<version>3.1.0</version> <version>3.1.1</version>
<name>quests</name> <name>quests</name>
<url>https://github.com/FlyingPikachu/Quests/</url> <url>https://github.com/FlyingPikachu/Quests/</url>
<packaging>jar</packaging> <packaging>jar</packaging>

View File

@ -1902,17 +1902,19 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
quester = questers.get(id); quester = questers.get(id);
} }
if (quester == null) { if (quester == null) {
if (!questerBlacklist.contains(id.toString())) {
getLogger().log(Level.WARNING, "Quester data for UUID \"" + id.toString() + "\" not stored. Attempting manual data retrieval...");
}
quester = new Quester(this); quester = new Quester(this);
quester.id = id; quester.id = id;
if (quester.loadData() == false && !questerBlacklist.contains(id.toString())) {
if (citizens != null) { if (citizens != null) {
if (citizens.getNPCRegistry().getByUniqueId(id) != null) { if (citizens.getNPCRegistry().getByUniqueId(id) != null) {
return quester; return quester;
} }
} }
if (!questerBlacklist.contains(id.toString())) {
getLogger().log(Level.WARNING, "Quester data for UUID \"" + id.toString() + "\" not stored. Attempting manual data retrieval...");
}
if (quester.loadData() == false && !questerBlacklist.contains(id.toString())) {
getLogger().info("Quester not found for UUID \"" + id.toString() + "\". Consider adding them to the Quester blacklist."); getLogger().info("Quester not found for UUID \"" + id.toString() + "\". Consider adding them to the Quester blacklist.");
} else { } else {
if (!questerBlacklist.contains(id.toString())) { if (!questerBlacklist.contains(id.toString())) {