本帖最后由 9958000 于 2019-5-11 21:19 编辑
Sk_ItemSerialize.jar
(569.03 KB, 下载次数: 12, 售价: 1 粒金粒)
前言
本插件为Skript扩展,主要用于物品的序列化处理.
使用前请确认您已安装Skript插件和ProtocolLib插件.
语法
序列化物品: serialize item with %itemstacks%
反序列化: unserialize item with %string%
给予玩家序列化物品: give %players% deserialize items %string%
将序列化物品掉落在某个坐标处: give %players% deserialize items %string%
将序列化物品掉落在某个实体的位置: drope deserialize items %string% at %entities%
设置玩家背包内某格物品为序列化物品: set slot %integer% of %players%'s inventory to deserialize items %string%
使用效果
我一般调用的时候会将数据发送到后台,数据量较大时会使用yml进行保存.
需要注意的是,如果你想用变量来储存一个数据,记得提前将 " 替换成 ""


备注
本插件已经在1.7.2Spigot, 1.7.10Thermos 1.11.0PaperSpigot 1.12PaperSpigot上通过测试,理论上全版本通用.
使用本插件若遇到疑问可加群796567333反馈,仅限本插件引起的问题.
下载

感谢大佬的插件
本帖最后由 asdf1234 于 2019-5-10 22:14 编辑
想問問 序列化能有什麼特別的用途嗎?例如讀取時間與普通的儲存itemstack有什麼區別呢?
想問問 序列化能有什麼特別的用途嗎?例如讀取時間與普通的儲存itemstack有什麼區別呢?
asdf1234 发表于 2019-5-10 21:59
想問問 序列化能有什麼特別的用途嗎?例如讀取時間與普通的儲存itemstack有什麼區別呢?
...
看个人需求吧,我这边的话是因为模组服,用skript的原有语法给予物品会丢失模组道具的一些nbt值,所以使用序列化解决了这个.
标题最后怎么多了个t
