We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4fd713 commit 870c8ddCopy full SHA for 870c8dd
1 file changed
src/main/kotlin/com/mairwunnx/projectessentials/chat/EntryPoint.kt
@@ -113,6 +113,20 @@ class EntryPoint : EssBase() {
113
}
114
115
116
+ if (mentions.isNotEmpty()) {
117
+ event.player.server.playerList.players.forEach {
118
+ val sortedMentions = mentions.sorted()
119
+ if ("@${it.name.string}" in sortedMentions) {
120
+ it.sendStatusMessage(
121
+ TextComponentUtils.toTextComponent {
122
+ "§7you are mentioned by §l§7${event.player.name.string}§7 player, in the chat."
123
+ },
124
+ true
125
+ )
126
+ }
127
128
129
+
130
if (!ChatUtils.isGlobalChat(event)) {
131
val players = event.player.serverWorld.getEntitiesWithinAABB(
132
event.player.entity.javaClass, AxisAlignedBB(
0 commit comments