不再缓存服务器白名单

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