Replies: 1 comment
-
Maybe even have a core cmd class that could be pulled and registered into the platform's command handler? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was considering to use this library for my project as it supports multiple platforms and my current solution, while working, may not be the best to have, especially in terms of things like tab completion and/or brigardier support.
The thing is, that I handle the command in a core module, while the command registration and calling of the central command handler are done in the platform-respective module of my project.
I would like to keep this structure as it allows an easy maintainability.
Can I set up Cloud in such a way that it listens for commands on the platform specific side, sends data to handle to the core and whenever a response is required towards the platform specific entity (i.e. send a message to a player) it returns it to the platform-specific handler?
To try and clarify, I mean allowing a behaviour like this (Example using Spigot):
Beta Was this translation helpful? Give feedback.
All reactions