We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90a300d commit f44055dCopy full SHA for f44055d
1 file changed
scripts/wayzer/reGrief/warnNewPlayer.kts
@@ -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