Closed Doren12345 closed 1 year ago
ScriptEngine (脚本引擎)
Windows Server 2022
2.9.3
1.19.50
只要
const trcmd = mc.newCommand("tr", "§c說話(tellraw)", PermType.GameMasters); trcmd.setAlias("tellr"); trcmd.mandatory("name", ParamType.Player); trcmd.mandatory("input", ParamType.RawText); trcmd.overload(["name", "input"]); trcmd.setCallback((_cmd, _ori, out, res) => { res.name.forEach((player) => { pla = player }) pla.tell(res.input) }); trcmd.setup();
將ParamType.Player(name)後面加上ParamType.RawText(input) .overload(["name", "input"]); 就會導致選擇器失效 (say @a[tag=a] 會失效)
const trcmd = mc.newCommand("tr", "§c說話(tellraw)", PermType.GameMasters); trcmd.setAlias("tellr"); trcmd.mandatory("name", ParamType.Player); trcmd.mandatory("input", ParamType.RawText); trcmd.overload(["name", "input"]); trcmd.setCallback((_cmd, _ori, out, res) => { res.name.forEach((player) => { pla = player }) pla.tell(res.input) }); trcmd.setup();``` ### 有关的日志/输出 _No response_ ### 插件列表 ```raw 19:08:57 INFO [Server] 插件列表[69] 19:08:57 INFO [Server] - LLMoney [v2.9.0] (LLMoney.dll) 19:08:57 INFO [Server] EconomyCore for LiteLoaderBDS 19:08:57 INFO [Server] - ScriptEngine-Lua [v2.9.0] (LiteLoader.Lua.dll) 19:08:57 INFO [Server] Lua ScriptEngine for LiteLoaderBDS 19:08:57 INFO [Server] - antiCrasher [v0.1.0] (AntiCrasherSkinPackage.dll) 19:08:57 INFO [Server] disable horion crasher 19:08:57 INFO [Server] - BEPlaceholderAPI [v1.0.12] (BEPlaceholderAPI.dll) 19:08:57 INFO [Server] BEPlaceholderAPI 19:08:57 INFO [Server] - DisconnectScreen [v1.0.10] (DisconnectScreen.dll) 19:08:57 INFO [Server] DisconnectScreen 19:08:57 INFO [Server] - BackupHelper [v2.0.7] (BackupHelper.dll) 19:08:57 INFO [Server] One command to backup your level 19:08:57 INFO [Server] - MDIYCraft [v1.0.1] (MDIYCraft.js) 19:08:57 INFO [Server] 自定義合成! 19:08:57 INFO [Server] - LLAntiCheat [v1.1.7] (LLAntiCheat_pr31_fix1.dll) 19:08:57 INFO [Server] Basic AntiCheat Plugin 19:08:57 INFO [Server] - QueryTPS [v1.0.10] (QueryTPS.dll) 19:08:57 INFO [Server] 查询TPS 19:08:57 INFO [Server] - orgEX [v2.0.3] (organizationEX.js) 19:08:57 INFO [Server] 一个综合的组织管理插件 19:08:57 INFO [Server] - RandomFakeSeed [v1.0.0] (RandomFakeSeed.dll) 19:08:57 INFO [Server] 随机假种子插件 19:08:57 INFO [Server] - TrustedSkin [v1.0.1] (TrustedSkin.dll) 19:08:57 INFO [Server] Make all skin trusted 19:08:57 INFO [Server] - DeathMessages [v1.0.0] (DeathMessages.js) 19:08:57 INFO [Server] DeathMessages 19:08:57 INFO [Server] - IntensifyEnderDragon [v0.0.5] (EnderDragon.js) 19:08:57 INFO [Server] 強化末影龍! 19:08:57 INFO [Server] - NBT修改 [v0.0.1] (nbt_tool_lock.js) 19:08:57 INFO [Server] NBT修改工具 19:08:57 INFO [Server] - PermissionAPI [v2.9.0] (PermissionAPI.dll) 19:08:57 INFO [Server] Builtin & Powerful permission API for LiteLoaderBDS 19:08:57 INFO [Server] - ServerFunction [v1.0.0] (ServerFunction.js) 19:08:57 INFO [Server] ServerFunction 19:08:57 INFO [Server] - hatRT [v1.0.0] (hatRT.ll.js) 19:08:57 INFO [Server] hatRT 19:08:57 INFO [Server] - AlwaysBroadcast [v1.0.4] (AlwaysBroadcast.dll) 19:08:57 INFO [Server] Fix an broadcast bug in bds. 19:08:57 INFO [Server] - iLand [v2.8.4] (iland-core.lua) 19:08:57 INFO [Server] Powerful land plugin. 19:08:57 INFO [Server] - XLore [v1.0.0] (XLore.lxl.lua) 19:08:57 INFO [Server] XLore 19:08:57 INFO [Server] - BehaviorLog [v2.1.4] (BehaviorLog.lxl.js) 19:08:57 INFO [Server] Behavior Log for LiteLoaderBDS 19:08:57 INFO [Server] - post [v1.0.0] (post.js) 19:08:57 INFO [Server] post 19:08:57 INFO [Server] - BanExplosion [v1.5.7] (BanExplosion.dll) 19:08:57 INFO [Server] Customize your explosion destroy rule! 19:08:57 INFO [Server] - cmdinblock [v1.0.0] (cmdinblock.js) 19:08:57 INFO [Server] cmdinblock 19:08:57 INFO [Server] - iLandHelper [v1.0.0] (iLandHelper.dll) 19:08:57 INFO [Server] Helper for iland. 19:08:57 INFO [Server] - tpr [v1.0.0] (tpr.js) 19:08:57 INFO [Server] tpr 19:08:57 INFO [Server] - ScriptEngine-QuickJs [v2.9.0] (LiteLoader.Js.dll) 19:08:57 INFO [Server] Javascript ScriptEngine for LiteLoaderBDS 19:08:57 INFO [Server] - AntiCommandCheats [v1.0.0] (AntiCommandCheats.lxl.js) 19:08:57 INFO [Server] AntiCommandCheats 19:08:57 INFO [Server] - EnchantUtil [v1.0.0] (EnchantUtil.ll.js) 19:08:57 INFO [Server] LLSE 真指令示例插件 19:08:57 INFO [Server] - MCBattlePass [v1.0.0] (MCBattlePass.js) 19:08:57 INFO [Server] MCBattlePass 19:08:57 INFO [Server] - AntiEnchant [v1.0.0] (AntiEnchant.js) 19:08:57 INFO [Server] AntiEnchant 19:08:57 INFO [Server] - Banclosecmd [v1.0.0] (Banclosecmd.js) 19:08:57 INFO [Server] Banclosecmd 19:08:57 INFO [Server] - AttribEdit [v0.0.2] (AttribEdit.js) 19:08:57 INFO [Server] 實體屬性編輯 19:08:57 INFO [Server] - AutoMessage [v1.0.0] (AutoMessage.js) 19:08:57 INFO [Server] AutoMessage 19:08:57 INFO [Server] - CALL [v0.2.0] (CALL.lxl.js) 19:08:57 INFO [Server] It aslo called Construct Assistant for LiteLoaderBDS 19:08:57 INFO [Server] - TPSChecker [v1.0.0] (TPSChecker.js) 19:08:57 INFO [Server] TPSChecker 19:08:57 INFO [Server] - CustomMotd [v1.2.0] (CustomMotd.js) 19:08:57 INFO [Server] 自定義服務器Motd 19:08:57 INFO [Server] - EasyChatLog [v1.0.0] (EasyChatLog.js) 19:08:57 INFO [Server] EasyChatLog 19:08:57 INFO [Server] - RestrictViolations [v1.0.0] (RestrictViolations.js) 19:08:57 INFO [Server] 限制玩家修改物品违规名称 19:08:57 INFO [Server] - EditSign [v1.0.0] (EditSign.lxl.js) 19:08:57 INFO [Server] EditSign 19:08:57 INFO [Server] - EntityCounter [v0.0.1] (EntityCounter.js) 19:08:57 INFO [Server] 實體數量查看 19:08:57 INFO [Server] - FMHunter [v1.0.0] (FMHunter.js) 19:08:57 INFO [Server] FMHunter 19:08:57 INFO [Server] - Essential [v0.0.1] (Essential.js) 19:08:57 INFO [Server] 19:08:57 INFO [Server] - FinishRanking [v1.0.0] (FinishRanking.js) 19:08:57 INFO [Server] 跑酷等比賽的終點排名次功能, by HelmetGreen 19:08:57 INFO [Server] - Fly [v1.0.0] (Fly.js) 19:08:57 INFO [Server] 纯小白开发的一个飞行插件 19:08:57 INFO [Server] - homeSystem [v1.0.0] (homeSystem.js) 19:08:57 INFO [Server] homeSystem 19:08:57 INFO [Server] - OffHand [v1.0.0] (OffHand.js) 19:08:57 INFO [Server] OffHand 19:08:57 INFO [Server] - 簽到插件 [v0.0.1] (LiteSign.js) 19:08:57 INFO [Server] 讓你可以發放每日獎勵 19:08:57 INFO [Server] - LLSECheckBag [v2.1.0] (LLSECheckBag.js) 19:08:57 INFO [Server] 可查所有玩家背包的查包插件 19:08:57 INFO [Server] - LuckyPray [v1.0.0] (LuckyPray.js) 19:08:57 INFO [Server] 幸運祈願 19:08:57 INFO [Server] - LxlBlackBe [v1.0.0] (LxlBlackBe.lxl.js) 19:08:57 INFO [Server] LxlBlackBe 19:08:57 INFO [Server] - MagicWelcome [v1.1.1] (MagicWelcome.js) 19:08:57 INFO [Server] A Simple Welcome 19:08:57 INFO [Server] - MoneyWalletSoc [v1.0.0] (MoneyWalletSoc.js) 19:08:57 INFO [Server] MoneyWalletSoc 19:08:57 INFO [Server] - More_PAPI [v1.0.0] (More_PAPI.js) 19:08:57 INFO [Server] More_PAPI 19:08:57 INFO [Server] - NewPlayer [v1.0.0] (NewPlayer.js) 19:08:57 INFO [Server] NewPlayer 19:08:57 INFO [Server] - NilCDK [v1.0.0] (NilCDK.js) 19:08:57 INFO [Server] NilCDK 19:08:57 INFO [Server] - npc [v1.0.0] (npc.js) 19:08:57 INFO [Server] npc 19:08:57 INFO [Server] - rockpaper [v1.0.0] (rockpaper.js) 19:08:57 INFO [Server] rockpaper 19:08:57 INFO [Server] - tpsTest [v1.0.0] (tpsTest.lxl.js) 19:08:57 INFO [Server] tpsTest 19:08:57 INFO [Server] - SShop [v1.0.0] (SShop.js) 19:08:57 INFO [Server] SShop 19:08:57 INFO [Server] - Tsidebar.js [v2.0.2] (Tsidebar.js) 19:08:57 INFO [Server] 快來自定義你的側邊欄吧 19:08:57 INFO [Server] - WatchPlayerCmd [v1.0.1] (WatchPlayerCmd.js) 19:08:57 INFO [Server] OP玩家監控玩家輸入命令 19:08:57 INFO [Server] - tpapro [v0.4.0] (tpapro.js) 19:08:57 INFO [Server] tpapro發行版-專註於解決社區常見tpa問題 19:08:57 INFO [Server] - wnrestart [v1.1.1] (wnrestart.js) 19:08:57 INFO [Server] 服務器定時重啟插件 19:08:57 INFO [Server] - ws [v1.0.0] (ws.js) 19:08:57 INFO [Server] ws 19:08:57 INFO [Server] - ScriptEngine-NodeJs [v2.9.0] (LiteLoader.NodeJs.dll) 19:08:57 INFO [Server] Node.js ScriptEngine for LiteLoaderBDS 19:08:57 INFO [Server] - NbsPlayer [v1.0.1] (nbs_player) 19:08:57 INFO [Server] 在服务器播放NBS音乐! 19:08:57 INFO [Server] - call-superx101-basicShape [v1.0.0] (superx101.basicShape.js) 19:08:57 INFO [Server] CALL's shape package 19:08:57 INFO [Server] 19:08:57 INFO [Server] 19:08:57 INFO [Server] *若要獲取詳細信息,請發送指令「ll list <Plugin Name>」
ParamType.RawText
异常模块
ScriptEngine (脚本引擎)
操作系统
Windows Server 2022
LiteLoader 版本
2.9.3
BDS 版本
1.19.50
发生了什么?
只要
將ParamType.Player(name)後面加上ParamType.RawText(input) .overload(["name", "input"]); 就會導致選擇器失效 (say @a[tag=a] 會失效)
复现此问题的步骤