修复不符合命名规范的计分板名称

This commit is contained in:
延皓 2022-09-01 03:01:02 +08:00
parent bd651ce38c
commit d7a4b8850f

View File

@ -1,7 +1,7 @@
// 计分板模块扩展插件 // 计分板模块扩展插件
// 忽略假人分数 // 忽略假人分数
// **请勿修改文件名** // **请勿修改文件名**
global_app_version = '1.0-beta.7'; global_app_version = '1.0-beta.8';
__config() -> { __config() -> {
'scope' -> 'global', 'scope' -> 'global',
@ -27,7 +27,8 @@ __config() -> {
'type' -> 'term', 'type' -> 'term',
'suggest' -> [ 'suggest' -> [
'2.x', '2.x',
'3.0-beta.4' '3.0-beta.4',
'3.0-beta.9'
] ]
} }
} }
@ -91,7 +92,11 @@ help() -> (
delete_old(fzsd_version) -> ( delete_old(fzsd_version) -> (
old_scoreboards = []; old_scoreboards = [];
if(fzsd_version == '2.x', if(fzsd_version == '3.0-beta.9',
(
old_scoreboards = ['fzsd.extra.bbl.display'];
),
fzsd_version == '2.x',
( (
old_scoreboards = ['usedDiaAxe', 'usedDiaPickaxe', 'usedDiaShovel', 'usedDiaHoe', 'usedIroAxe','usedIroPickaxe', 'usedIroShovel', 'usedIroHoe', 'usedStoAxe', 'usedStoPickaxe', 'usedStoShovel', 'usedStoHoe', 'usedWooAxe', 'usedWooPickaxe', 'usedWooShovel', 'usedWooHoe', 'usedGolAxe', 'usedGolPickaxe', 'usedGolShovel', 'usedGolHoe', 'usedNetAxe', 'usedNetPickaxe', 'usedNetShovel', 'usedNetHoe', 'usedShears', 'damageTaken', '10xDamageTaken', 'deathCounter', 'deathTester', 'digCounter', 'fishingCounter', 'fishingTester', 'killCounter', 'tradingCounter', 'totalList', 'bedrockBreaked', 'fz.bbl', 'fz.aviate1m', 'fz.aviateCounter', 'fz.aviateOneTime', 'Health', 'carpetBot', 'parameter']; old_scoreboards = ['usedDiaAxe', 'usedDiaPickaxe', 'usedDiaShovel', 'usedDiaHoe', 'usedIroAxe','usedIroPickaxe', 'usedIroShovel', 'usedIroHoe', 'usedStoAxe', 'usedStoPickaxe', 'usedStoShovel', 'usedStoHoe', 'usedWooAxe', 'usedWooPickaxe', 'usedWooShovel', 'usedWooHoe', 'usedGolAxe', 'usedGolPickaxe', 'usedGolShovel', 'usedGolHoe', 'usedNetAxe', 'usedNetPickaxe', 'usedNetShovel', 'usedNetHoe', 'usedShears', 'damageTaken', '10xDamageTaken', 'deathCounter', 'deathTester', 'digCounter', 'fishingCounter', 'fishingTester', 'killCounter', 'tradingCounter', 'totalList', 'bedrockBreaked', 'fz.bbl', 'fz.aviate1m', 'fz.aviateCounter', 'fz.aviateOneTime', 'Health', 'carpetBot', 'parameter'];
team_remove('carpetBot'); team_remove('carpetBot');
@ -111,7 +116,13 @@ delete_old(fzsd_version) -> (
update_from(fzsd_version) -> ( update_from(fzsd_version) -> (
params = []; params = [];
if(fzsd_version == '2.x', if(fzsd_version == '3.0-beta.9',
(
params = [
['fzsd.extra.bbl.display', 'fzsd.module.scoreboard.display.bedrock_broke_count']
]
),
fzsd_version == '2.x',
( (
params = [ params = [
['activation', 'fzsd.module.scoreboard.display.activation'], ['activation', 'fzsd.module.scoreboard.display.activation'],
@ -123,7 +134,6 @@ update_from(fzsd_version) -> (
['tradingCounter', 'fzsd.module.scoreboard.display.trade_count'], ['tradingCounter', 'fzsd.module.scoreboard.display.trade_count'],
['bedrockBreaked', 'fzsd.module.scoreboard.display.bedrock_broke_count'], ['bedrockBreaked', 'fzsd.module.scoreboard.display.bedrock_broke_count'],
['fz.aviate1m', 'fzsd.module.scoreboard.display.aviating_distance'] ['fz.aviate1m', 'fzsd.module.scoreboard.display.aviating_distance']
['fz.bbl', 'fzsd.extra.bbl.display']
] ]
), ),
fzsd_version == '3.0-beta.4', fzsd_version == '3.0-beta.4',