mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-22 18:45:27 +01:00
Require valid player before compass permission check, fixes #1405
This commit is contained in:
parent
b60edbf699
commit
bba5cc2b1f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user