CommandAPI icon indicating copy to clipboard operation
CommandAPI copied to clipboard

Delayed Commands example project

Open willkroboth opened this issue 2 years ago • 0 comments

This PR adds a "delayed commands" example project to resolve #451.

After some discussion on Discord, the general idea was that the CommandAPI is focused on providing an interface to achieve features with commands that are hard to do without Brigadier or NMS code. Delayed commands are possible with Spigot API, so they probably won't be added directly to the CommandAPI.

However, it is possible to create a delayed command using the CommandAPI. Hopefully, this example project will help guide developers in creating their own system, or they can just copy the code :P.

This PR is currently a draft because I haven't actually made any delayed commands. I have an idea of how I would make it work, and I'll implement that eventually. However, if anyone has their own system for creating delayed commands, feel free to add it to the example. You can either comment something here or open a PR to the head branch, willkroboth/dev/delayed-commands-example.

TODO:

  • [ ] Add examples
  • [ ] Explain examples

willkroboth avatar Jun 08 '23 18:06 willkroboth