mirror of
https://github.com/PikaMug/Quests.git
synced 2025-01-03 15:08:10 +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>
|
<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>
|
||||||
|
@ -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())) {
|
||||||
|
Loading…
Reference in New Issue
Block a user