public interface PermissionService<TSubject>
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasPermission(TSubject subject,
java.lang.String permission)
Checks whether the provided
TSubject has
the provided permission. |
boolean hasPermission(TSubject subject, java.lang.String permission)
TSubject has
the provided permission. Depending on
the target platform, this can be a
Player, User, Group etc...subject - The TSubject to testpermission - the String permission to checkTSubject has
the provided permission.