mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-25 03:55:35 +01:00
Update target of Quest Compass for OP
This commit is contained in:
parent
a587a0c1c0
commit
82de833b60
@ -4445,6 +4445,7 @@ public class BukkitQuester implements Quester {
|
||||
if (player == null) {
|
||||
return;
|
||||
}
|
||||
compassTargetQuestId = null;
|
||||
if (!canUseCompass()) {
|
||||
return;
|
||||
}
|
||||
@ -4453,7 +4454,6 @@ public class BukkitQuester implements Quester {
|
||||
if (defaultLocation == null) {
|
||||
defaultLocation = player.getWorld().getSpawnLocation();
|
||||
}
|
||||
compassTargetQuestId = null;
|
||||
player.setCompassTarget(defaultLocation);
|
||||
}
|
||||
|
||||
@ -4461,7 +4461,8 @@ public class BukkitQuester implements Quester {
|
||||
* Update compass target to current stage of first available current quest, if possible
|
||||
*/
|
||||
public void findCompassTarget() {
|
||||
if (!canUseCompass()) {
|
||||
// Here we apply this method to OPs by not checking #canUseCompass
|
||||
if (getPlayer() == null || !getPlayer().hasPermission("quests.compass")) {
|
||||
return;
|
||||
}
|
||||
for (final Quest quest : currentQuests.keySet()) {
|
||||
|
Loading…
Reference in New Issue
Block a user