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]: When To Add Response #40

Open
letheriver2007 opened this issue Mar 18, 2024 · 6 comments
Open

[Feature]: When To Add Response #40

letheriver2007 opened this issue Mar 18, 2024 · 6 comments

Comments

@letheriver2007
Copy link

It seems that Starrail and Genshin have different returns, how can we fix them?

@jie65535
Copy link
Owner

Wdym?

@letheriver2007
Copy link
Author

佬,现在能支持lc的返回了嘛,不会修Java。。。

@jie65535
Copy link
Owner

要自己写一个ChatSystem继承原来的,然后替换原来的,处理发送给玩家消息的方法。在执行命令的时候捕获发送给玩家的消息作为返回。

或者更简单点,就跟GC一样,增加一个消息执行反馈的事件。PR到LC里。这个比较正统,而且也简单,有现成的例子GC可以搬。

@letheriver2007
Copy link
Author

如果佬有空麻烦更新下呗,悲,小白对java一窍不通。。。
我还原了部分被删除和注释的EventListeners内容,但一堆报错,也不晓得啥情况

@jie65535
Copy link
Owner

因为LC核心并不支持那些事件,我说了,给LC写一个命令反馈的事件就是最简单的实现,或者提一个Issue给LC也行。

从插件这边要实现需要很绕。

@letheriver2007
Copy link
Author

感谢大佬

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

No branches or pull requests

2 participants