mirror of
https://github.com/PikaMug/Quests.git
synced 2024-12-22 17:17:38 +01:00
Reduce console spam from NPCs, untested, fixes #127. Bump version number
This commit is contained in:
parent
c600e3e8d2
commit
8cb0e74b68
2
pom.xml
2
pom.xml
@ -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>
|
||||
|
@ -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())) {
|
||||
|
Loading…
Reference in New Issue
Block a user