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.
@all
1 parent 896a3e3 commit ce10f79Copy full SHA for ce10f79
src/main/kotlin/com/mairwunnx/projectessentials/chat/EntryPoint.kt
@@ -171,6 +171,19 @@ class EntryPoint : EssBase() {
171
172
if (mentions.isNotEmpty()) {
173
if (mentionSettings.mentionsEnabled && mentionSettings.mentionInActionBar) {
174
+ if ("@all" in mentions) {
175
+ event.player.server.playerList.players.forEach {
176
+ it.sendStatusMessage(
177
+ TextComponentUtils.toTextComponent {
178
+ mentionSettings.mentionMessage.replace(
179
+ "%player",
180
+ event.player.name.string
181
+ ).replace("&", "§")
182
+ }, true
183
+ )
184
+ }
185
+ return
186
187
event.player.server.playerList.players.forEach {
188
if ("@${it.name.string}" in mentions) {
189
it.sendStatusMessage(
0 commit comments