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

Feature: More communication interfaces for MCDR clients #15

Open
Ra1ny-Yuki opened this issue Feb 10, 2023 · 0 comments
Open

Feature: More communication interfaces for MCDR clients #15

Ra1ny-Yuki opened this issue Feb 10, 2023 · 0 comments
Labels
enhancement New feature or request good idea good idea given

Comments

@Ra1ny-Yuki
Copy link

Multiple interfaces are provided to access client data or execute commands for CBR plugins. But it's imposible to access CBR server plugin interfaces legally from MCDR client side.

Maybe adding following interfaces to CBR_mc clients cound change this situation:

def dispatch_plugin_event(event_id: str, *args, **kwargs)
"""
Dispatch a plugin event in CBR server, and CBR plugins could register plugin event listener 
to listen events from client or CBR server side and execute custom stuff
(this may requires a proper plugin event system in CBR server side)
"""
def server_plugin_api_query(plugin_id: str, function_name: str, *args, **kwargs):
"""
Corresponding to server side interface CBRInterface.api_query()
Allow mcdr plugins query the result of CBR plguin
the parameters and usages should be simillar with the interface mentioned above
"""
@R1ckyH R1ckyH added enhancement New feature or request good idea good idea given labels Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good idea good idea given
Projects
None yet
Development

No branches or pull requests

2 participants