Skip to content

Conversation

@willkroboth
Copy link
Collaborator

@willkroboth willkroboth commented Jun 8, 2023

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 willkroboth force-pushed the dev/delayed-commands-example branch 2 times, most recently from f841508 to e418207 Compare June 8, 2023 22:11
@willkroboth willkroboth force-pushed the dev/delayed-commands-example branch from 97d95b3 to 0f556a2 Compare June 13, 2023 11:20
@willkroboth willkroboth force-pushed the dev/delayed-commands-example branch from 8175399 to 0270eca Compare August 17, 2023 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adding Command Delays

1 participant