FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Delayed Commands example project by willkroboth · Pull Request #460 · CommandAPI/CommandAPI · GitHub

Delayed Commands example project - #460

Draft
willkroboth wants to merge 4 commits into
CommandAPI:masterfrom
willkroboth:dev/delayed-commands-example
Draft

Delayed Commands example project#460
willkroboth wants to merge 4 commits into
CommandAPI:masterfrom
willkroboth:dev/delayed-commands-example

Conversation

willkroboth commented Jun 8, 2023
edited
Loading

Copy link
Copy Markdown
Collaborator

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 force-pushed the dev/delayed-commands-example branch 2 times, most recently from f841508 to e418207 Compare June 8, 2023 22:11
willkroboth force-pushed the dev/delayed-commands-example branch from 97d95b3 to 0f556a2 Compare June 13, 2023 11:20
willkroboth force-pushed the dev/delayed-commands-example branch from 8175399 to 0270eca Compare August 17, 2023 21:23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL