mirror of
https://github.com/PikaMug/Quests.git
synced 2025-01-20 15:21:37 +01:00
Potential fix for #503
This commit is contained in:
parent
db6e4a99d2
commit
441cd7ef28
@ -251,10 +251,12 @@ public class Event {
|
|||||||
if (teleport != null) {
|
if (teleport != null) {
|
||||||
player.teleport(teleport);
|
player.teleport(teleport);
|
||||||
}
|
}
|
||||||
if (!(book == null && book.isEmpty() && Quests.citizensBooks != null)) {
|
if (!(book == null && book.isEmpty())) {
|
||||||
if (Quests.citizensBooks.hasFilter(book)) {
|
if (Quests.citizensBooks != null) {
|
||||||
Quests.citizensBooks.openBook(player, Quests.citizensBooks.getFilter(book));
|
if (Quests.citizensBooks.hasFilter(book)) {
|
||||||
}
|
Quests.citizensBooks.openBook(player, Quests.citizensBooks.getFilter(book));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (failQuest == true) {
|
if (failQuest == true) {
|
||||||
quest.failQuest(quester);
|
quest.failQuest(quester);
|
||||||
|
@ -123,7 +123,7 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
|
|||||||
public static Vault vault = null;
|
public static Vault vault = null;
|
||||||
public static CitizensPlugin citizens;
|
public static CitizensPlugin citizens;
|
||||||
public static Denizen denizen = null;
|
public static Denizen denizen = null;
|
||||||
public static CitizensBooksAPI citizensBooks;
|
public static CitizensBooksAPI citizensBooks = null;
|
||||||
// Config settings
|
// Config settings
|
||||||
public int acceptTimeout = 20;
|
public int acceptTimeout = 20;
|
||||||
public boolean allowCommands = true;
|
public boolean allowCommands = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user