YufiriaMazenta / Craftorithm

Advanced recipe management system for minecraft server
https://yufiriamazenta.gitbook.io/craftorithm-wiki/
GNU General Public License v3.0
61 stars 4 forks source link

请求再次修复ni变量解析 #65

Closed postyizhan closed 1 month ago

postyizhan commented 2 months ago

Describe the bug | 描述你遇到的bug

我曾经发过一个issues

合成不解析neigeitems插件的papi https://github.com/YufiriaMazenta/Craftorithm/issues/56

但是现在又不能解析了 图片

Steps to reproduce the bug | 复现此Bug的步骤

1.下载核心

This server is running Paper version git-Paper-497 (MC: 1.20.4) (Implementing API version 1.20.4-R0.1-SNAPSHOT) (Git: d8d54d9 on ver/1.20.4)
You are running the latest version

2. 安装插件

3. 编写配置

NeigeItems:

'1':
  material: SAND
  lore:
    - 'PAPI变量测试: <papi::player_name>'

接着执行 /ni reload

Craftorithm:

type: shaped
shape:
- e
source:
  e: minecraft:stone
unlock: false
result: neige_items:1 1

接着执行 /craft reload

4. 复现

执行 /ni get 1 可以看到变量正常 图片

使用工作台进行合成 图片

Server version | 服务器版本

This server is running Paper version git-Paper-497 (MC: 1.20.4) (Implementing API version 1.20.4-R0.1-SNAPSHOT) (Git: d8d54d9 on ver/1.20.4) You are running the latest version

Craftorithm Version | Craftorithm的版本

1.9.7-20240625

FULL server log | 完整服务器日志

无报错

展开查看 ``` [20:32:16] [ServerMain/INFO]: Environment: Environment[sessionHost=https://sessionserver.mojang.com, servicesHost=https://api.minecraftservices.com, name=PROD] [20:32:18] [ServerMain/INFO]: Loaded 1174 recipes [20:32:18] [ServerMain/INFO]: Loaded 1271 advancements [20:32:18] [Server thread/INFO]: Starting minecraft server version 1.20.4 [20:32:18] [Server thread/INFO]: Loading properties [20:32:18] [Server thread/INFO]: This server is running Paper version git-Paper-497 (MC: 1.20.4) (Implementing API version 1.20.4-R0.1-SNAPSHOT) (Git: d8d54d9 on ver/1.20.4) [20:32:18] [Server thread/INFO]: Server Ping Player Sample Count: 12 [20:32:18] [Server thread/INFO]: Using 4 threads for Netty based IO [20:32:19] [Server thread/WARN]: [!] The timings profiler has been enabled but has been scheduled for removal from Paper in the future. We recommend installing the spark profiler as a replacement: https://spark.lucko.me/ For more information please visit: https://github.com/PaperMC/Paper/issues/8948 [20:32:19] [Server thread/INFO]: [ChunkTaskScheduler] Chunk system is using 1 I/O threads, 3 worker threads, and gen parallelism of 3 threads [20:32:19] [Server thread/INFO]: Default game type: SURVIVAL [20:32:19] [Server thread/INFO]: Generating keypair [20:32:19] [Server thread/INFO]: Starting Minecraft server on *:25565 [20:32:19] [Server thread/INFO]: Using epoll channel type [20:32:19] [Server thread/INFO]: Paper: Using libdeflate (Linux x86_64) compression from Velocity. [20:32:19] [Server thread/INFO]: Paper: Using OpenSSL 3.0.x (Linux x86_64) cipher from Velocity. [20:32:19] [Server thread/INFO]: [NeigeItems neige.neigeitems.NeigeItems] loading ankh-invoke [20:32:19] [Server thread/INFO]: [NeigeItems neige.neigeitems.NeigeItems] ankh-invoke loaded [20:32:19] [Server thread/INFO]: [PlaceholderAPI] Loading server plugin PlaceholderAPI v2.11.6 [20:32:19] [Server thread/INFO]: [NeigeItems] Loading server plugin NeigeItems v1.17.26 [20:32:19] [Server thread/INFO]: [Craftorithm] Loading server plugin Craftorithm v1.9.7-20240625 [20:32:19] [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it [20:32:19] [Server thread/WARN]: **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE! [20:32:19] [Server thread/WARN]: The server will make no attempt to authenticate usernames. Beware. [20:32:19] [Server thread/WARN]: While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose. [20:32:19] [Server thread/WARN]: To change this, set "online-mode" to "true" in the server.properties file. [20:32:19] [Server thread/INFO]: Preparing level "world" [20:32:20] [Server thread/INFO]: Preparing start region for dimension minecraft:overworld [20:32:21] [Server thread/INFO]: Time elapsed: 370 ms [20:32:21] [Server thread/INFO]: Preparing start region for dimension minecraft:the_nether [20:32:22] [Server thread/INFO]: Time elapsed: 997 ms [20:32:22] [Server thread/INFO]: Preparing start region for dimension minecraft:the_end [20:32:22] [Server thread/INFO]: Time elapsed: 28 ms [20:32:22] [Server thread/INFO]: [PlaceholderAPI] Enabling PlaceholderAPI v2.11.6 [20:32:22] [Server thread/INFO]: [PlaceholderAPI] Fetching available expansion information... [20:32:22] [Server thread/INFO]: [NeigeItems] Enabling NeigeItems v1.17.26 [20:32:22] [Server thread/INFO]: §bNeige§3Items §7> §7未发现前置插件: Vault [20:32:22] [Server thread/INFO]: §bNeige§3Items §7> §7未发现前置插件: Oraxen [20:32:22] [Server thread/INFO]: §bNeige§3Items §7> §7未发现前置插件: MagicGem [20:32:22] [Server thread/INFO]: §bNeige§3Items §7> §7未发现前置插件: ItemsAdder [20:32:22] [Server thread/INFO]: §bNeige§3Items §7> §7未发现前置插件: ProtocolLib [20:32:24] [Server thread/INFO]: [PlaceholderAPI] Successfully registered internal expansion: ni [1.0.0] [20:32:24] [Server thread/INFO]: [Craftorithm] Enabling Craftorithm v1.9.7-20240625 [20:32:24] [Server thread/INFO]: [Craftorithm] 未发现Vault [20:32:24] [Server thread/INFO]: [Craftorithm] 未发现PlayerPoints [20:32:24] [Server thread/INFO]: [Craftorithm] 发现NeigeItems,已挂钩 [20:32:24] [Server thread/INFO]: [Craftorithm] 未发现ItemsAdder [20:32:24] [Server thread/INFO]: [Craftorithm] 未发现Oraxen [20:32:24] [Server thread/INFO]: [Craftorithm] 未发现MMOItems [20:32:24] [Server thread/INFO]: [Craftorithm] 未发现MythicMobs [20:32:24] [Server thread/INFO]: [Craftorithm] 插件加载完毕 [20:32:24] [Server thread/INFO]: [PlaceholderAPI] Placeholder expansion registration initializing... [20:32:24] [Server thread/INFO]: Running delayed init tasks [20:32:24] [Server thread/INFO]: §bNeige§3Items §7> §7未发现前置插件: MythicMobs [20:32:24] [Server thread/INFO]: §bNeige§3Items §7> §7未发现前置插件: EasyItem [20:32:24] [Server thread/INFO]: [PlaceholderAPI] Successfully registered external expansion: player [2.0.8] [20:32:24] [Server thread/INFO]: 1 placeholder hook(s) registered! [20:32:24] [Server thread/INFO]: Done (5.886s)! For help, type "help" [20:32:24] [Server thread/INFO]: Timings Reset [20:32:31] [User Authenticator #0/INFO]: UUID of player postyizhan is 055acd68-1584-3c43-9b00-bd037403522b [20:32:31] [Server thread/INFO]: postyizhan joined the game [20:32:31] [Server thread/INFO]: postyizhan[/127.0.0.1:60286] logged in with entity id 227 at ([world]167.75314582280927, 71.0, 83.8120177563311) [20:33:17] [Server thread/INFO]: postyizhan issued server command: /craft reload [20:34:20] [Server thread/INFO]: postyizhan issued server command: /ni get 1 [20:36:28] [Server thread/INFO]: [Craftorithm] 插件版本:1.9.7-20240625 ```

Other files, you can drag and drop them here to upload | 其他文件,你可以拖拽文件到这里上传

No response

Images | 相关图片

No response

YufiriaMazenta commented 2 months ago

这个估计是因为ni在不传入玩家的时候不解析papi变量吧,现有架构好像不太好弄,有空的时候我试一下

YufiriaMazenta commented 1 month ago

https://github.com/YufiriaMazenta/Craftorithm/commit/b775d52d8fee296ab83ff277c048cad30402dfc8 已修复