mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-23 02:55:40 +01:00
Require valid player before compass permission check, fixes #1405
This commit is contained in:
parent
b60edbf699
commit
bba5cc2b1f
@ -3822,11 +3822,13 @@ public class Quester {
|
||||
}
|
||||
|
||||
public boolean canUseCompass() {
|
||||
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