Skip to content

Commit

Permalink
fix: vanish check on dice
Browse files Browse the repository at this point in the history
  • Loading branch information
acrylic-style committed Oct 23, 2023
1 parent 4e846bf commit f54b198
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

group = "net.azisaba"
version = "6.7.9"
version = "6.7.10"

java {
toolchain.languageVersion.set(JavaLanguageVersion.of(8))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Dice1ItemListener(val plugin: LifeCore) : Listener {
e.player
.getNearbyEntities(50.0, 50.0, 50.0)
.filterIsInstance<Player>()
.filter { it.gameMode != GameMode.SPECTATOR && !it.hasMetadata("vanished") }
.filter { it.gameMode != GameMode.SPECTATOR && it.getMetadata("vanished").getOrNull(0)?.asBoolean() != true }
.let { if (it.isEmpty()) null else it[random.nextInt(it.size)] }
e.player.sendMessageToNearbyPlayers("§f§l${e.player.name}§6§lの抽選ダイスの結果は§f§l${randomPlayer?.name}§6§lさんになりました!")
}
Expand Down

0 comments on commit f54b198

Please sign in to comment.