Add a lockable command manager

This will be used for Sponge & Fabric, that both require command registration to happen (at latest) in specific events. This way we lock writing after that event has occurred.

As a side effect, we're able to collect & merge all commands before registering them to the platform, which means we don't have to hackily force-inject duplicate commands.
This commit is contained in:
Alexander Söderberg 2020-10-20 17:49:50 +02:00 committed by Alexander Söderberg
parent 5cdef1b401
commit ad3ca86f42
4 changed files with 223 additions and 0 deletions

View file

@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added TextColorArgument to minecraft-extras
- Added LocationArgument to cloud-bukkit
- Added ServerArgument to cloud-velocity
- Added LockableCommandManager to cloud-core
## [1.0.2] - 2020-10-18