LegacyScriptEngine icon indicating copy to clipboard operation
LegacyScriptEngine copied to clipboard

A plugin engine for running LLSE plugins on LeviLamina

Results 57 LegacyScriptEngine issues
Sort by recently updated
recently updated
newest added

### Describe the bug [Bug]: 在 onPreJoin 监听事件中使用 player.kick() 或 player.disconnect() 可以正常踢出玩家但是控制台报错 ### To Reproduce 在 onPreJoin 监听事件中使用 player.kick() 或 player.disconnect() ### Expected behavior 在 onPreJoin 监听事件中使用 player.kick() 或 player.disconnect()...

bug

### Describe the bug 对象未定义时操作玩家绑定数据会崩服 ### To Reproduce mc.listen("onSetArmor", (pl) => { pl.setExtraData("test",1) }) ### Expected behavior 会在控制台抛出错误,但并不会崩服 ### Screenshots ![Image](https://github.com/user-attachments/assets/b031ffea-0548-4dce-9fd1-ba2577c92164) ### Platform Windows 10 ### BDS Version 1.21.80 ###...

bug

### Describe the bug pl.sendForm(fm,callback[,forUpdating]) 其中 forUpdating 参数不起作用,并且加了这个参数后无法正常打开表单 ### To Reproduce ```JavaScript mc.listen("onServerStarted", () => { const command = mc.newCommand("formtest", "表单测试", PermType.Any); command.overload([]); command.setCallback((cmd, origin, output, result) => { CustomFormTest(origin.player);...

bug

### Is your feature request related to a problem? Please describe. [Feature]: 希望增加新的监听事件:铜傀儡打开箱子、铜箱子并可以拦截 ### Describe the solution you'd like [Feature]: 希望增加新的监听事件:铜傀儡打开箱子、铜箱子并可以拦截 ### Describe alternatives you've considered [Feature]: 希望增加新的监听事件:铜傀儡打开箱子、铜箱子并可以拦截 ### Additional...

enhancement

### Describe the bug [Bug]: onCloseContainer无法监听漏斗关闭 ### To Reproduce [Bug]: onCloseContainer无法监听漏斗关闭 ### Expected behavior [Bug]: onCloseContainer无法监听漏斗关闭 ### Screenshots _No response_ ### Platform _No response_ ### BDS Version _No response_ ###...

bug

### Describe the bug [Bug]: "onHopperPushOut"无法监听两个漏斗之间的传递 ### To Reproduce [Bug]: "onHopperPushOut"无法监听两个漏斗之间的传递 ### Expected behavior [Bug]: "onHopperPushOut"无法监听两个漏斗之间的传递 ### Screenshots _No response_ ### Platform _No response_ ### BDS Version _No response_ ###...

bug

### Is your feature request related to a problem? Please describe. 在现有的机制上,只允许添加事件监听器,而不能移除事件监听器(除非重启服务端)。如果一个事件监听器的设计是有生命寿命的,在超出生命寿命后它仍然继续执行虽然可以加层判断阻拦但是在 Ticks 中还是会有执行帧,多多少少会有性能上的消耗(特别是量大的情况下)。 ### Describe the solution you'd like 在底层上对 Levilamina 事件监听器进一步封装,在 LegacyScriptEngine 使用上,每次添加一个事件监听器返回一个事件监听器的对象,该事件监听器存在一个方法可以对内存中的事件监听器(自身)进行销毁移除,来实现对事件监听器的精细控制。 ### Describe alternatives you've considered...

enhancement