pmmp / PocketMine-MP

A server software for Minecraft: Bedrock Edition in PHP
https://pmmp.io
GNU Lesser General Public License v3.0
3.28k stars 1.56k forks source link

Add events for server startup completed #6496

Open dktapps opened 1 week ago

dktapps commented 1 week ago

Description

This was suggested years ago as part of a much larger proposal (#2828), which has since been rejected and broken down.

This would run at the end of server startup as seen in https://github.com/pmmp/PocketMine-MP/commit/38ce83d5ecdc762387821c001b01fbfa4b6a3a5f.

Justification

Honestly not too sure.

Alternative methods

This is already achievable by scheduling a delayed task with a delay of 0 during startup. However, if there's a significant demand for it, an event might be a nicer way of doing this.

dktapps commented 1 week ago

Similar idea as StartupPostWorldsLoadedEvent as proposed in #6330, but in a way smaller proposal.