不再缓存服务器白名单

This commit is contained in:
Harvey_Husky 2023-07-24 19:46:01 +08:00
parent 06694b5711
commit 9f98df20d4

View File

@ -43,7 +43,6 @@ global_current_scoreboard_list = [
'fzsd.module.scoreboard.display.aviating_distance',
'fzsd.module.scoreboard.display.placement_count'
];
global_server_whitelist_cache = null;
__config() -> {
'scope' -> 'global',
@ -184,10 +183,7 @@ __on_player_disconnects(player, reason) -> (
// 获取服务器白名单
get_server_whitelist() -> (
if(global_server_whitelist_cache == null,
global_server_whitelist_cache = keys(system_info('server_whitelist'));
);
return(global_server_whitelist_cache);
return(keys(system_info('server_whitelist')));
);
// 重载配置文件