mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-27 21:26:29 +01:00
useCompass should be accessed in a static way
This commit is contained in:
parent
7d8e198b9c
commit
db569027e7
@ -901,7 +901,7 @@ public class PlayerListener implements Listener, ColorUtil {
|
||||
|
||||
plugin.questers.put(evt.getPlayer().getUniqueId(), quester);
|
||||
|
||||
if (Quests.getInstance().useCompass) {
|
||||
if (Quests.useCompass) {
|
||||
quester.resetCompass();
|
||||
}
|
||||
|
||||
|
@ -89,7 +89,7 @@ public class Quest {
|
||||
if (stageCompleteMessage != null) {
|
||||
q.getPlayer().sendMessage(Quests.parseString(stageCompleteMessage, this));
|
||||
}
|
||||
if (Quests.getInstance().useCompass) {
|
||||
if (Quests.useCompass) {
|
||||
q.resetCompass();
|
||||
q.findCompassTarget();
|
||||
}
|
||||
@ -176,7 +176,7 @@ public class Quest {
|
||||
|
||||
public boolean updateCompass(Quester quester, Stage nextStage)
|
||||
{
|
||||
if (!Quests.getInstance().useCompass) return false;
|
||||
if (!Quests.useCompass) return false;
|
||||
|
||||
Location targetLocation = null;
|
||||
if (nextStage == null) {
|
||||
|
@ -3468,7 +3468,7 @@ if (quest != null) {
|
||||
}
|
||||
|
||||
public void resetCompass() {
|
||||
if (!Quests.getInstance().useCompass) return;
|
||||
if (!Quests.useCompass) return;
|
||||
Player player = getPlayer();
|
||||
if (player == null) return;
|
||||
|
||||
@ -3480,7 +3480,7 @@ if (quest != null) {
|
||||
}
|
||||
|
||||
public void findCompassTarget() {
|
||||
if (!Quests.getInstance().useCompass) return;
|
||||
if (!Quests.useCompass) return;
|
||||
Player player = getPlayer();
|
||||
if (player == null) return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user