diff --git a/changelogs/4.0-snapshot.md b/changelogs/4.0-snapshot.md index 0e6e2a6bc9..be89cc1401 100644 --- a/changelogs/4.0-snapshot.md +++ b/changelogs/4.0-snapshot.md @@ -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: