From 55c744cc006f290cdd4a71e82af3825f4328f43b Mon Sep 17 00:00:00 2001 From: mmm545 <64874108+mmm545@users.noreply.github.com> Date: Fri, 11 Feb 2022 20:39:45 +0300 Subject: [PATCH] Added missing changes to the 4.0 changelog (#4820) --- changelogs/4.0.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/changelogs/4.0.md b/changelogs/4.0.md index b7b66c4a4..08bc18f43 100644 --- a/changelogs/4.0.md +++ b/changelogs/4.0.md @@ -413,6 +413,7 @@ However, if we add `src-namespace-prefix: pmmp\TesterPlugin` to the `plugin.yml` ### Command - The following classes have been removed: + - `PluginIdentifiableCommand` - use `PluginOwned` and `PluginOwnedTrait` - `RemoteConsoleCommandSender` - The following API methods have signature changes: - `Command->setPermission()` argument is now mandatory (but still nullable). @@ -1054,6 +1055,7 @@ However, if we add `src-namespace-prefix: pmmp\TesterPlugin` to the `plugin.yml` - `Player->addWindow()`: use `Player->setCurrentWindow()` instead - `Player->dataPacket()`: replaced by `NetworkSession->sendDataPacket()` - `Player->getAddress()`: replaced by `NetworkSession->getIp()` + - `Player->getClientId()`: the client ID can be found in `PlayerInfo->getExtraData()` - `Player->getPing()`: moved to `NetworkSession` - `Player->getPort()`: moved to `NetworkSession` - `Player->getWindow()`: use `Player->getCurrentWindow()` instead @@ -1069,6 +1071,8 @@ However, if we add `src-namespace-prefix: pmmp\TesterPlugin` to the `plugin.yml` - API version checks are now more strict. It is no longer legal to declare multiple minimum versions on the same major version. Doing so will now cause the plugin to fail to load with the message `Multiple minimum API versions found for some major versions`. - `plugin.yml` YAML commands loading is now internalized inside `PluginBase`. - `PluginManager->registerEvent()` now has a simpler signature: `registerEvent(string $event, \Closure $handler, int $priority, Plugin $plugin, bool $handleCancelled = false)`. The provided closure must accept the specified event class as its only parameter. See [Event API changes](#event) for more details. +- The following classes have been added: + - `PluginOwned` - The following classes have been removed: - `PluginLogger` - The following constants have been removed: