mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-30 01:31:18 +08:00
Refactor Command usage and description strings
This commit is contained in:
committed by
Luke H-W
Unverified
parent
e9464784bb
commit
2cfbe78184
@@ -187,6 +187,7 @@ public class Account {
|
||||
}
|
||||
|
||||
public boolean hasPermission(String permission) {
|
||||
if (permission.isEmpty()) return true;
|
||||
if (this.permissions.contains("*") && this.permissions.size() == 1) return true;
|
||||
|
||||
// Add default permissions if it doesn't exist
|
||||
|
||||
Reference in New Issue
Block a user