Skip to content

Commit

Permalink
style: format
Browse files Browse the repository at this point in the history
  • Loading branch information
rito528 committed Dec 17, 2023
1 parent 63a1384 commit fc63498
Showing 1 changed file with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,17 @@ package com.github.unchama.seichiassist.subsystems.gacha.bukkit.actions

import cats.effect.{LiftIO, Sync}
import com.github.unchama.minecraft.actions.{GetConnectedPlayers, OnMinecraftServerThread}
import com.github.unchama.seichiassist.subsystems.gacha.application.actions.{DrawGacha, GrantGachaPrize}
import com.github.unchama.seichiassist.subsystems.gacha.application.actions.{
DrawGacha,
GrantGachaPrize
}
import com.github.unchama.seichiassist.subsystems.gacha.domain.{GrantState, LotteryOfGachaItems}
import com.github.unchama.seichiassist.subsystems.gachaprize.GachaPrizeAPI
import com.github.unchama.seichiassist.subsystems.gachaprize.domain.GachaRarity._
import com.github.unchama.seichiassist.util.SendMessageEffect.{sendMessageToEveryone, sendMessageToEveryoneIgnoringPreferenceM}
import com.github.unchama.seichiassist.util.SendMessageEffect.{
sendMessageToEveryone,
sendMessageToEveryoneIgnoringPreferenceM
}
import com.github.unchama.seichiassist.util._
import net.md_5.bungee.api.chat.hover.content.Text
import net.md_5.bungee.api.chat.{HoverEvent, TextComponent}
Expand All @@ -15,7 +21,9 @@ import org.bukkit.Sound
import org.bukkit.entity.Player
import org.bukkit.inventory.ItemStack

class BukkitDrawGacha[F[_]: LiftIO: Sync: OnMinecraftServerThread: GetConnectedPlayers[*[_], Player]](
class BukkitDrawGacha[
F[_]: LiftIO: Sync: OnMinecraftServerThread: GetConnectedPlayers[*[_], Player]
](
implicit gachaPrizeAPI: GachaPrizeAPI[F, ItemStack, Player],
lotteryOfGachaItems: LotteryOfGachaItems[F, ItemStack],
grantGachaPrize: GrantGachaPrize[F, ItemStack, Player]
Expand Down Expand Up @@ -73,9 +81,7 @@ class BukkitDrawGacha[F[_]: LiftIO: Sync: OnMinecraftServerThread: GetConnectedP
Sync[F].delay {
player.sendMessage(s"${RED}おめでとう!!!!!Gigantic☆大当たり!$additionalMessage")
player.spigot().sendMessage(message)
} >> sendMessageToEveryone[TextComponent, F](message) >> Sync[
F
].delay {
} >> sendMessageToEveryone[TextComponent, F](message) >> Sync[F].delay {
SendSoundEffect.sendEverySoundWithoutIgnore(
Sound.ENTITY_ENDER_DRAGON_DEATH,
0.5f,
Expand Down

0 comments on commit fc63498

Please sign in to comment.