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); );