From 39711d3e01f70d1f11e3407a901a5065bc1dc571 Mon Sep 17 00:00:00 2001 From: Harvey_Husky Date: Thu, 11 Jan 2024 19:04:25 +0800 Subject: [PATCH] =?UTF-8?q?=E8=84=9A=E6=9C=AC=EF=BC=9A=E9=81=BF=E5=85=8D?= =?UTF-8?q?=E5=8E=86=E5=8F=B2=E9=81=97=E7=95=99=E7=9A=84=E8=B4=9F=E5=88=86?= =?UTF-8?q?=E7=8E=A9=E5=AE=B6=E6=B1=A1=E6=9F=93=E8=AE=A1=E5=88=86=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 7 ------- scripts/fzsd_score.sc | 8 ++++---- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 973ddc6..acb0c94 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,7 @@ -# 留言 -因病一段时间内不再添加新功能。 -1.21以后函数允许入参,可以搞很多骚操作,但是得等有心思的时候再说了。 # FZ生存数据包 为FZ服务器写的Minecraft生存辅助数据包 -#### @Author: Harvey_Husky - -#### Copyright (C) 2019-2023 Harvey_Husky - ## 安装教程 1. 兼容性 diff --git a/scripts/fzsd_score.sc b/scripts/fzsd_score.sc index 26bb86c..9193e85 100644 --- a/scripts/fzsd_score.sc +++ b/scripts/fzsd_score.sc @@ -128,7 +128,7 @@ __on_close() -> ( write_file('team_cache', 'json', global_team_cache); ); -if(require_version('1.4.999'), // 等待新功能支持 +if(require_version('1.4.112'), // 新功能支持 __on_player_command(player, command) -> ( l = length(command); if(l > 13 @@ -199,8 +199,8 @@ reload_configs() -> ( global_config:'config_version' = '1.0.0'; // 占位用,无实际作用 config_changed = true; ); - // 等待新功能支持 - if(require_version('1.4.999') && !contains(global_config, 'allow_spawn_whitelist_player'), + // 新功能支持 + if(require_version('1.4.112') && !contains(global_config, 'allow_spawn_whitelist_player'), global_config:'allow_spawn_whitelist_player' = false; config_changed = true; ); @@ -428,7 +428,7 @@ command_recalculate_total_score(scoreboard) -> ( for(scoreboard(scoreboard), if(_ != total_score_name_new, current_player_score = scoreboard(scoreboard, _); - if(current_player_score < 0, // 避免溢出 + if(current_player_score < -1000000000, // 避免溢出 current_player_score = 2147483647; scoreboard(scoreboard, _, 2147483647); );