mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-12 13:43:57 +01:00
parent
f8f0f515bb
commit
eb5998a179
@ -3784,10 +3784,14 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
|
||||
*/
|
||||
public boolean checkQuester(UUID uuid) {
|
||||
Player p = Bukkit.getPlayer(uuid);
|
||||
for (PermissionAttachmentInfo pm : p.getEffectivePermissions()) {
|
||||
if (pm.getPermission().startsWith("quests")) {
|
||||
return false;
|
||||
try {
|
||||
for (PermissionAttachmentInfo pm : p.getEffectivePermissions()) {
|
||||
if (pm.getPermission().startsWith("quests")) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} catch (NullPointerException ne) {
|
||||
// User has no permissions
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user