Replace command permissions with a new smarter permission system that allows for compound permissions
This commit is contained in:
parent
ce2fbe9746
commit
e8a1a9a6cf
15 changed files with 455 additions and 41 deletions
|
|
@ -128,8 +128,8 @@ class PaperBrigadierListener<C> implements Listener {
|
|||
event.getLiteral(),
|
||||
event.getBrigadierCommand(),
|
||||
event.getBrigadierCommand(),
|
||||
(s, p) -> p.isEmpty()
|
||||
|| s.getBukkitSender().hasPermission(p)));
|
||||
(s, p) -> p.toString().isEmpty()
|
||||
|| s.getBukkitSender().hasPermission(p.toString())));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue