Require valid player before compass permission check, fixes #1405

This commit is contained in:
PikaMug 2020-09-14 15:45:50 -04:00
parent b60edbf699
commit bba5cc2b1f

View File

@ -3822,9 +3822,11 @@ public class Quester {
}
public boolean canUseCompass() {
if (!getPlayer().hasPermission("worldedit.navigation.jumpto")) {
if (getPlayer().hasPermission("quests.compass")) {
return true;
if (getPlayer() != null) {
if (!getPlayer().hasPermission("worldedit.navigation.jumpto")) {
if (getPlayer().hasPermission("quests.compass")) {
return true;
}
}
}
return false;