mirror of
https://github.com/bloodmc/GriefDefender.git
synced 2024-11-25 12:45:48 +01:00
Updated Permissions (markdown)
parent
ddeabea3ef
commit
5d92e9fe7d
@ -27,6 +27,22 @@ UNION
|
||||
SELECT * FROM minecraft.luckperms_group_permissions WHERE contexts LIKE CONCAT('%gd_claim_default":"admin"%')
|
||||
```
|
||||
|
||||
#### Select all user claim permissions
|
||||
|
||||
```sql
|
||||
SELECT A.* FROM minecraft.luckperms_group_permissions A, griefdefender.gd_claim_data B WHERE A.contexts LIKE CONCAT('%', BIN_TO_UUID(B.claim_uuid), '%') AND B.claim_type <> 'admin'
|
||||
UNION
|
||||
SELECT * FROM minecraft.luckperms_group_permissions WHERE contexts LIKE CONCAT('%gd_claim_default":"basic"%') OR contexts LIKE CONCAT('%gd_claim_default":"user"%')
|
||||
```
|
||||
|
||||
#### Delete all user claim permissions
|
||||
|
||||
:warning: Backup LuckPerms database before performing deletes. You have been WARNED! :warning:
|
||||
|
||||
```sql
|
||||
DELETE FROM minecraft.luckperms_group_permissions A, griefdefender.gd_claim_data B WHERE A.contexts LIKE CONCAT('%', BIN_TO_UUID(B.claim_uuid), '%') AND B.claim_type <> 'admin'
|
||||
DELETE FROM minecraft.luckperms_group_permissions WHERE contexts LIKE CONCAT('%gd_claim_default":"basic"%') OR contexts LIKE CONCAT('%gd_claim_default":"user"%')
|
||||
```
|
||||
|
||||
|
||||
# User Permissions
|
||||
|
Loading…
Reference in New Issue
Block a user