Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Coloryr committed May 20, 2024
1 parent 3f4427f commit 65c91a9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ fabric同理
- enable
- picRotateSpeed 图片旋转速度
- economy 经济扩展配置
- mysqlUrl 目前无用
- backend 目前无用
- vault 是否使用vault插件
- mysqlUrl 目前无用
- backend 目前无用
- vault 是否使用vault插件
- funConfig 娱乐选项
- rain 是否启用随机下雨
- rainRate 随机下雨概率
Expand All @@ -142,7 +142,11 @@ fabric同理
- infoLimitSize 信息长限制长度
- musicTimeLimit 是否启用歌曲长度限制
- maxMusicTime 限制最长歌曲长度,单位秒
- limitText 限制长度替换文本
- limitText 限制长度替换文本
- cost 花费相关配置
- searchCost 搜歌花费
- addMusicCost 点歌花费
- useCost 启用花费
- sendDelay Hud信息更新延迟

## 指令说明
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,8 @@ public static class PackCodec implements StreamCodec<RegistryFriendlyByteBuf, Pa
}

@Override
public void encode(RegistryFriendlyByteBuf pack, PackData buffer) {
public void encode(@NotNull RegistryFriendlyByteBuf pack, PackData buffer) {
PacketCodec.pack(pack, buffer.cmd, buffer.data, buffer.data1);
}

private void writeString(ByteBuf buf, String data) {
byte[] temp = data.getBytes(StandardCharsets.UTF_8);
buf.writeInt(temp.length)
.writeBytes(temp);
}
}
}
2 changes: 1 addition & 1 deletion server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '6.1.0'
}
version = "3.1.1"
version = "3.1.2"

archivesBaseName = "[bukkit_spigot_paper]AllMusic_Server"

Expand Down

0 comments on commit 65c91a9

Please sign in to comment.