Skip to content

Commit

Permalink
Merge pull request #19 from MikChanNoPlugins/dev/dev
Browse files Browse the repository at this point in the history
Next version
  • Loading branch information
wtlgo authored Jun 21, 2023
2 parents 988d906 + 15997bd commit 7ecb034
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}

Expand Down

0 comments on commit 7ecb034

Please sign in to comment.