[ci skip] changelog: mention more Permission API changes

This commit is contained in:
Dylan K. Taylor 2021-04-12 16:25:50 +01:00
parent 666670bc6f
commit c42a00641f
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -586,6 +586,9 @@ This version features substantial changes to the network system, improving coher
- `Permission->addChild()`
- `Permission->removeChild()`
- `Permissible->getPermissionRecalculationCallbacks()` - allows reacting to changes of permissions, such as new permissions being granted or denied
- `Permissible->setBasePermission()` - used for assigning root permissions like `pocketmine.group.operator`; plugins usually shouldn't use this
- `Permissible->unsetBasePermission()`
- `PermissionAttachmentInfo->getGroupPermissionInfo()` - returns the `PermissionAttachmentInfo` of the permission that caused the current permission value to be set, or null if the permission is explicit
- The following API methods have been removed:
- `Permissible->isOp()`: use `Permissible->hasPermission(DefaultPermissions::ROOT_OPERATOR)` instead, **but you really shouldn't directly depend on a player's op status, add your own permissions instead!**
- `Permissible->setOp()`: use `addAttachment($plugin, DefaultPermissions::ROOT_OPERATOR, true)` instead to add, and `removeAttachment()` to remove it (or addAttachment() with false to explicitly deny it, just like any other permission)
@ -597,6 +600,8 @@ This version features substantial changes to the network system, improving coher
- `PermissionManager->subscribeToDefaultPerms()`
- `PermissionManager->unsubscribeFromDefaultPerms()`
- `PermissionManager->getDefaultPermSubscriptions()`
- `PermissionAttachment->getPermissible()`
- `PermissionAttachmentInfo->getPermissible()`
- The following fields have been removed:
- `Permission::$DEFAULT_PERMISSION`
- The following API methods have changes: