diff --git a/gradle.properties b/gradle.properties index 0d0d3d7..71df9f7 100644 --- a/gradle.properties +++ b/gradle.properties @@ -8,7 +8,7 @@ loader_version=0.19.3 # Mod Properties -mod_version=2.0 +mod_version=2.1 maven_group=io.ib67 archives_base_name=sfcraft diff --git a/server-deploy/overrides/sfcraft/announcements/0_firstjoin_welcome.txt b/server-deploy/overrides/sfcraft/announcements/0_firstjoin_welcome.txt new file mode 100644 index 0000000..bf99531 --- /dev/null +++ b/server-deploy/overrides/sfcraft/announcements/0_firstjoin_welcome.txt @@ -0,0 +1,8 @@ +§a§l欢迎加入 SaltedFish Club Server! +§a在游玩时,请注意以下事项: + - 未经允许,请不要破坏/偷窃已有设施内的资源。 + - 服务器有一些非原版特性,具体请看: + https://sfclub.cc/~sfcraft/vanilla/ + - 你可以邀请其他玩家加入游戏,但你将视为对他做担保。 +§7如果您想邀请朋友加入服务器, 可以向管理员提出申请 +§7此外, 本服务器无密码登录,盗版账号安全责任自负。 \ No newline at end of file diff --git a/server-deploy/overrides/sfcraft/announcements/2.1_update.txt b/server-deploy/overrides/sfcraft/announcements/2.1_update.txt new file mode 100644 index 0000000..1d0f99d --- /dev/null +++ b/server-deploy/overrides/sfcraft/announcements/2.1_update.txt @@ -0,0 +1,10 @@ +§d§lSFCraft 已更新到 2.1。 + +§a主要改动: + - 修复了 /reco 指令无法使用的问题 + - 铁砧现在可以用于生成网络图片画 + - 修复了拉屎的判定逻辑 + - 重写了 wiki 的大量页面 + +具体信息请查阅我们的更新日志: +§bhttps://sfclub.cc/~sfcraft/changelog/2026-08-04/ \ No newline at end of file diff --git a/src/main/java/io/ib67/sfcraft/config/SFConfig.java b/src/main/java/io/ib67/sfcraft/config/SFConfig.java index cf0162d..8339f01 100644 --- a/src/main/java/io/ib67/sfcraft/config/SFConfig.java +++ b/src/main/java/io/ib67/sfcraft/config/SFConfig.java @@ -12,7 +12,7 @@ public class SFConfig { public String domain = "localhost"; public int port = 25565; public String webApiBase = "localhost"; - public String serverSecret = RandomStringUtils.random(32); + public String serverSecret = RandomStringUtils.secure().next(32); public int httpPort = 8080; public long maxSchematicSize = 10240000; } diff --git a/src/main/java/io/ib67/sfcraft/module/room/CreativeRoomModule.java b/src/main/java/io/ib67/sfcraft/module/room/CreativeRoomModule.java index f0ac79a..6744f19 100644 --- a/src/main/java/io/ib67/sfcraft/module/room/CreativeRoomModule.java +++ b/src/main/java/io/ib67/sfcraft/module/room/CreativeRoomModule.java @@ -176,7 +176,7 @@ public class CreativeRoomModule extends ServerModule { .append(Component.translatable("message.sfcraft.playground.features_list").withColor(Color.MAGENTA.getRGB()))); player.sendSystemMessage(Component.nullToEmpty(" ")); player.sendSystemMessage(Component.translatable("message.sfcraft.playground.upload_hint").withColor(CommonColors.GRAY) - .append(Component.literal("https://github.com/saltedfishclub/sfcraft-schematics").withColor(CommonColors.GRAY).withStyle(it -> it.withUnderlined(true)))); + .append(Component.literal("/upload schematic").withColor(CommonColors.BLUE).withStyle(it -> it.withUnderlined(true)))); player.sendSystemMessage(Component.translatable("message.sfcraft.playground.mobs_no_escape").withColor(CommonColors.GRAY)); player.sendSystemMessage(Component.translatable("message.sfcraft.playground.how_to_leave").withColor(CommonColors.GRAY)); player.setGameMode(GameType.CREATIVE); diff --git a/src/main/resources/assets/sfcraft/lang/en_us.json b/src/main/resources/assets/sfcraft/lang/en_us.json index 362a337..b7865b2 100644 --- a/src/main/resources/assets/sfcraft/lang/en_us.json +++ b/src/main/resources/assets/sfcraft/lang/en_us.json @@ -53,7 +53,7 @@ "message.sfcraft.playground.only_here": "You can only use this in playground!", "message.sfcraft.playground.welcome": "You are now in the creative playground. Use //schem list to view available schematics.", "message.sfcraft.playground.features_available": "The following features are now available: ", - "message.sfcraft.playground.features_list": "/player /track /summon /setblock /gamerule and all WorldEdit commands.", + "message.sfcraft.playground.features_list": "/player /track /summon /setblock /gm (gamemode) /pt (teleport) /polymer creative and all WorldEdit commands.", "message.sfcraft.playground.upload_hint": "How to upload schematics to the playground: ", "message.sfcraft.playground.mobs_no_escape": "Mobs in the playground cannot escape to other dimensions.", "message.sfcraft.playground.how_to_leave": "Use /reco or rejoin the game to leave.", diff --git a/src/main/resources/assets/sfcraft/lang/zh_cn.json b/src/main/resources/assets/sfcraft/lang/zh_cn.json index 329659d..f265da1 100644 --- a/src/main/resources/assets/sfcraft/lang/zh_cn.json +++ b/src/main/resources/assets/sfcraft/lang/zh_cn.json @@ -53,7 +53,7 @@ "message.sfcraft.playground.only_here": "只能在游乐园中使用此功能!", "message.sfcraft.playground.welcome": "你现在正在创造游乐园中,使用 //schem list 查看可用投影。", "message.sfcraft.playground.features_available": "以下功能现在可用:", - "message.sfcraft.playground.features_list": "/player /track /summon /setblock /gamerule 及 WorldEdit 的所有命令。", + "message.sfcraft.playground.features_list": "/player /track /summon /setblock /gm (gamemode) /pt (teleport) 及 WorldEdit 的所有命令。", "message.sfcraft.playground.upload_hint": "如何上传投影到游乐场: ", "message.sfcraft.playground.mobs_no_escape": "游乐园中的生物不能逃逸到其他维度。", "message.sfcraft.playground.how_to_leave": "使用 /reco 或重新加入游戏即可离开。",