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>
<artifactId>quests</artifactId>
<version>3.1.0</version>
<version>3.1.1</version>
<name>quests</name>
<url>https://github.com/FlyingPikachu/Quests/</url>
<packaging>jar</packaging>

View File

@ -1902,17 +1902,19 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
quester = questers.get(id);
}
if (quester == null) {
quester = new Quester(this);
quester.id = id;
if (citizens != null) {
if (citizens.getNPCRegistry().getByUniqueId(id) != null) {
return quester;
}
}
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.id = id;
if (quester.loadData() == false && !questerBlacklist.contains(id.toString())) {
if (citizens != null) {
if (citizens.getNPCRegistry().getByUniqueId(id) != null) {
return quester;
}
}
getLogger().info("Quester not found for UUID \"" + id.toString() + "\". Consider adding them to the Quester blacklist.");
} else {
if (!questerBlacklist.contains(id.toString())) {