Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delayed Commands example project #460

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

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
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