You can download API 3 versions of PocketMine from here: https://github.com/pmmp/PocketMine-MP/releases until the developers of the plugins you are using have updated them to API 4. Note that 3.x.y versions will stop being maintained at some point and only 4 will exist going forwards, see this announcement from the discord for more details: