mirror of
https://github.com/SikongJueluo/cc-utils.git
synced 2025-11-29 12:57:50 +08:00
fix: accesscontrol toast; feature: autocraft basic; reconstruct: autocraft
fix: - accesscontrol send toast failed - advanced peripherals BlockDetailData wrong record type feature: - autocraft support multi package craft - autocraft more fast craft speed reconstruct: - CraftManager algorithm - autocraft logic
This commit is contained in:
@@ -124,9 +124,9 @@ function sendNotice(player: string, playerInfo?: PlayerInfo) {
|
||||
const noticeTargetPlayers = config.adminGroupConfig.groupUsers.concat(
|
||||
config.usersGroups
|
||||
.filter((value) => value.isNotice)
|
||||
.map((value) => value.groupUsers ?? [])
|
||||
.flat(),
|
||||
.flatMap((value) => value.groupUsers ?? []),
|
||||
);
|
||||
logger.debug(`noticeTargetPlayers: ${noticeTargetPlayers.join(", ")}`);
|
||||
|
||||
for (const targetPlayer of noticeTargetPlayers) {
|
||||
if (!onlinePlayers.includes(targetPlayer)) continue;
|
||||
@@ -134,6 +134,7 @@ function sendNotice(player: string, playerInfo?: PlayerInfo) {
|
||||
name: player,
|
||||
info: playerInfo,
|
||||
});
|
||||
sleep(1);
|
||||
}
|
||||
releaser.release();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user