mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
[ci skip] changelog: mention more Permission API changes
This commit is contained in:
parent
666670bc6f
commit
c42a00641f
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user