jie65535 / gc-opencommand-plugin

A plugin that open the GC command execution interface for third-party clients
GNU Affero General Public License v3.0
367 stars 49 forks source link

[Feature]: When To Add Response #40

Open letheriver2007 opened 3 months ago

letheriver2007 commented 3 months ago

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

jie65535 commented 3 months ago

Wdym?

letheriver2007 commented 3 months ago

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

jie65535 commented 3 months ago

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

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

letheriver2007 commented 3 months ago

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

jie65535 commented 3 months ago

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

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

letheriver2007 commented 3 months ago

感谢大佬