mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-13 22:25:50 +01:00
parent
f8f0f515bb
commit
eb5998a179
@ -3784,11 +3784,15 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
|
||||
*/
|
||||
public boolean checkQuester(UUID uuid) {
|
||||
Player p = Bukkit.getPlayer(uuid);
|
||||
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