Skip to content

Commit f44055d

Browse files
committed
✨ (wayzer/reGrief/warnNewPlayer) 小号提示
1 parent 90a300d commit f44055d

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package wayzer.reGrief
2+
3+
listen<EventType.PlayerJoin> {
4+
val info = PlayerData[it.player]
5+
val existed = Groups.player.asIterable().find { player ->
6+
val otherInfo = PlayerData[player]
7+
info != otherInfo && otherInfo.ids.any { id -> id in info.ids }
8+
} ?: return@listen
9+
broadcast(
10+
"[yellow]{player.name}[] 可能为{existed.name}小号,请管理员注意观察".with(
11+
"player" to it.player, "existed" to existed
12+
)
13+
)
14+
}

0 commit comments

Comments
 (0)