- 将命名空间改为“fzsd”

- 完善交互器
- 添加管理员命令(/function admin.fzsd:<...>)
- 添加启动函数,用于自动升级等功能
- 添加重装、深度安装、深度卸载、深度重装函数
This commit is contained in:
延皓
2022-07-30 16:29:18 +08:00
parent dfe06e506c
commit 08d3d01b18
994 changed files with 3644 additions and 3522 deletions
+5 -15
View File
@@ -1,7 +1,7 @@
// 计分板模块扩展插件
// 忽略假人分数
// **请勿修改文件名**
global_app_version = '1.0-beta.2';
global_app_version = '1.0-beta.4';
__config() -> {
'scope' -> 'global',
@@ -23,7 +23,7 @@ __config() -> {
__on_start() -> (
global_team_cache = read_file('team_cache', 'json');
debug(global_team_cache);
print(player('all'), 'fz_score.sc已加载!');
print(player('all'), 'fzsd_score.sc已加载!');
);
__on_close() -> (
@@ -124,17 +124,6 @@ restore_merge_old() -> (
);
merge_score(from, to) -> (
// 旧计分板总分名字
l_1 = sort(scoreboard(from));
total_name_old = l_1:(length(l_1 - 1));
// 如有非法字符则确定是总分
if(!(total_name_old ~ '\\W'),
total_name_old = null;
debug('1' + total_name_old);
);
// 如果目标计分板不存在则创建
if(scoreboard() ~ to == null, scoreboard_add(to));
@@ -151,10 +140,10 @@ merge_score(from, to) -> (
debug('3.3' + str(_ != total_name_old));
debug('3.4' + str((!contains(fake_players, _)
|| contains(new_players, _)
) && _ != total_name_old));
) && !(_ ~ '\\W')));
if((!contains(fake_players, _)
|| contains(new_players, _)
) && _ != total_name_old,
) && !(_ ~ '\\W'),
debug('4' + _);
debug('from' + scoreboard(from, _));
debug('to' + scoreboard(to, _));
@@ -264,6 +253,7 @@ display_total_score(scoreboard) -> (
);
restore_from_stats() -> (
print('暂未开发');
return(0);
);