diff --git a/build.gradle b/build.gradle index 618ee3c..cfde829 100644 --- a/build.gradle +++ b/build.gradle @@ -19,7 +19,7 @@ static def determineVersion(String defaultVersion) { } group = "dev.mikchan.mcnp" -version = determineVersion("2.2.0") +version = determineVersion("2.2.1") repositories { mavenCentral() diff --git a/src/main/java/dev/mikchan/mcnp/chat/implementation/spigot/v1_16_5/events/listeners/SpigotV1m16p5MCNCListener.kt b/src/main/java/dev/mikchan/mcnp/chat/implementation/spigot/v1_16_5/events/listeners/SpigotV1m16p5MCNCListener.kt index 761f5d5..0eb1258 100644 --- a/src/main/java/dev/mikchan/mcnp/chat/implementation/spigot/v1_16_5/events/listeners/SpigotV1m16p5MCNCListener.kt +++ b/src/main/java/dev/mikchan/mcnp/chat/implementation/spigot/v1_16_5/events/listeners/SpigotV1m16p5MCNCListener.kt @@ -48,8 +48,8 @@ internal class SpigotV1m16p5MCNCListener(private val plugin: ChatPlugin) : Liste if (event.isGlobal) return plugin.server.scheduler.scheduleSyncDelayedTask(plugin) { - if (event.recipients.any { it.gameMode != GameMode.SPECTATOR }) return@scheduleSyncDelayedTask - event.sender.sendMessage(plugin.config.localNotification) + if (event.recipients.any { it.gameMode != GameMode.SPECTATOR && it != event.sender }) return@scheduleSyncDelayedTask + event.sender.sendMessage(plugin.formatter.formatPlain(event.sender, plugin.config.localNotification)) } }