diff --git a/main/src/main/java/me/blackvein/quests/Quester.java b/main/src/main/java/me/blackvein/quests/Quester.java index f3493d33b..e623a3a9d 100644 --- a/main/src/main/java/me/blackvein/quests/Quester.java +++ b/main/src/main/java/me/blackvein/quests/Quester.java @@ -3739,7 +3739,7 @@ public class Quester { } return false; } else if (quest.getNpcStart() != null && quest.getNpcStart().getEntity() != null - && quest.getNpcStart().getEntity().getLocation().distance(getPlayer().getLocation()) < 5.0 + && quest.getNpcStart().getEntity().getLocation().distance(getPlayer().getLocation()) > 6.0 && plugin.getSettings().canAllowCommandsForNpcQuests() == false) { if (giveReason) { String msg = Lang.get(getPlayer(), "mustSpeakTo"); diff --git a/main/src/main/java/me/blackvein/quests/listeners/NpcListener.java b/main/src/main/java/me/blackvein/quests/listeners/NpcListener.java index 22c00decb..c57118dfe 100644 --- a/main/src/main/java/me/blackvein/quests/listeners/NpcListener.java +++ b/main/src/main/java/me/blackvein/quests/listeners/NpcListener.java @@ -47,7 +47,7 @@ import net.citizensnpcs.api.npc.NPC; public class NpcListener implements Listener { - final Quests plugin; + private final Quests plugin; public NpcListener(Quests newPlugin) { plugin = newPlugin; diff --git a/main/src/main/java/me/blackvein/quests/listeners/PlayerListener.java b/main/src/main/java/me/blackvein/quests/listeners/PlayerListener.java index 39f338bd8..ea06b45f8 100644 --- a/main/src/main/java/me/blackvein/quests/listeners/PlayerListener.java +++ b/main/src/main/java/me/blackvein/quests/listeners/PlayerListener.java @@ -80,7 +80,7 @@ import net.citizensnpcs.api.CitizensAPI; public class PlayerListener implements Listener { - final Quests plugin; + private final Quests plugin; public PlayerListener(Quests newPlugin) { plugin = newPlugin;