完善更新模块
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
#新版本号
|
#新版本号
|
||||||
data modify storage fz:survival newVersion set value [2,1,3,0]
|
data modify storage fz:survival newVersion set value [2,1,3,2]
|
||||||
execute if data storage fz:survival newVersion[3] run data modify storage fz:survival snapshot set value 1b
|
execute if data storage fz:survival newVersion[3] run data modify storage fz:survival snapshot set value 1b
|
||||||
execute unless data storage fz:survival newVersion[3] run data remove storage fz:survival snapshot
|
execute unless data storage fz:survival newVersion[3] run data remove storage fz:survival snapshot
|
||||||
##data remove storage fz:survival snapshot
|
##data remove storage fz:survival snapshot
|
||||||
|
|||||||
@@ -1,6 +1,13 @@
|
|||||||
|
data modify storage fz:cache installed set from storage fz:survival installed
|
||||||
#卸载
|
#卸载
|
||||||
function fz:uninstall
|
function fz:uninstall
|
||||||
#安装
|
#安装
|
||||||
function fz:install
|
function fz:install
|
||||||
|
execute if data storage fz:cache installed{scoreboards: 0b} run function fz:scoreboards/uninstall
|
||||||
|
execute if data storage fz:cache installed{sweeper: 0b} run function fz:sweeper/uninstall
|
||||||
|
execute if data storage fz:cache installed{logintips: 0b} run function fz:login/logintips/uninstall
|
||||||
|
execute if data storage fz:cache installed{health: 0b} run function fz:health/uninstall
|
||||||
|
execute if data storage fz:cache installed{config: 0b} run function fz:config/uninstall
|
||||||
|
data remove storage fz:cache installed
|
||||||
#提示已安装
|
#提示已安装
|
||||||
tellraw @a {"text": "[信息]升级完成","color": "#5fff00"}
|
tellraw @a {"text": "[信息]升级完成","color": "#5fff00"}
|
||||||
+2
-3
@@ -123,7 +123,7 @@ global_bl = ['stone', 'granite', 'polished_granite', 'diorite', 'polished_diorit
|
|||||||
'magenta_candle', 'light_blue_candle', 'yellow_candle', 'lime_candle', 'pink_candle', 'gray_candle', 'light_gray_candle',
|
'magenta_candle', 'light_blue_candle', 'yellow_candle', 'lime_candle', 'pink_candle', 'gray_candle', 'light_gray_candle',
|
||||||
'cyan_candle', 'purple_candle', 'blue_candle', 'brown_candle', 'green_candle', 'red_candle', 'black_candle'
|
'cyan_candle', 'purple_candle', 'blue_candle', 'brown_candle', 'green_candle', 'red_candle', 'black_candle'
|
||||||
];
|
];
|
||||||
__restore(pl, s_player) ->(
|
__restore(pl) ->(
|
||||||
scoreboard_remove('killCounter');
|
scoreboard_remove('killCounter');
|
||||||
scoreboard_remove('digCounter');
|
scoreboard_remove('digCounter');
|
||||||
scoreboard_remove('deathCounter');
|
scoreboard_remove('deathCounter');
|
||||||
@@ -218,9 +218,8 @@ __restore(pl, s_player) ->(
|
|||||||
);
|
);
|
||||||
by_whitelist() ->(
|
by_whitelist() ->(
|
||||||
pl = keys(system_info('server_whitelist'));
|
pl = keys(system_info('server_whitelist'));
|
||||||
s_player = player();
|
|
||||||
game_tick(50);
|
game_tick(50);
|
||||||
__restore(pl, s_player);
|
__restore(pl);
|
||||||
print('完成!');
|
print('完成!');
|
||||||
return()
|
return()
|
||||||
)
|
)
|
||||||
Reference in New Issue
Block a user