useCompass should be accessed in a static way

This commit is contained in:
HappyPikachu 2016-03-21 20:47:36 -04:00
parent 7d8e198b9c
commit db569027e7
3 changed files with 5 additions and 5 deletions

View File

@ -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();
}

View File

@ -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) {

View File

@ -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;