Files
Sdf1_login/.gitcommit_msg_118
T

16 lines
870 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
第118批:违禁品没收/归还全链路PDC批次打标+日志抓现行
玩家实测「每出进一次领地多给1个违禁品,不需要退出重进」,
115批的onQuit清暂存防不住在线出进循环。按用户思路上日志抓现行:
1. 没收时给每件物品盖PDC批次章(nanoTime),日志打:
玩家/领地/入口(栈顶5帧)/物品明细/数量/批次号/returnOnLeave
2. 退还前扫背包+副手:同批次带标物品仍在玩家手上=插件已提前
返还过→本批暂存丢弃不再还(防重复退还+1)
3. 退还日志:退给谁/领地/批次/数量/明细/拦截多少
4. 清暂存日志:退出时清多少件
5. 空没收日志:进了没收却没收到(排查入口异常)
Paper 26.2 API变更:ItemStack.getPersistentDataContainer()返回
只读View,set走editPersistentDataContainer(Consumer)。