Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Bkm016 committed Dec 31, 2023
2 parents 3e8962d + 6d121f2 commit 1b59942
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class TypeActionBar : Type {
// sender.sendRawMessage(newText)
// }
// }
sender.sendRawMessage(newText)
sender.sendActionBar(newText)
} else {
sender.sendMessage(newText)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import org.bukkit.event.player.PlayerQuitEvent
import org.tabooproject.reflex.Reflex.Companion.invokeMethod
import org.tabooproject.reflex.Reflex.Companion.setProperty
import org.tabooproject.reflex.Reflex.Companion.unsafeInstance
import taboolib.common.platform.Ghost
import taboolib.common.platform.event.EventPriority
import taboolib.common.platform.event.SubscribeEvent
import taboolib.common.util.unsafeLazy
Expand Down Expand Up @@ -80,6 +81,7 @@ private val playerScoreboardMap = ConcurrentHashMap<UUID, PlayerScoreboard>()
/**
* 进入游戏时移除记分板标记
*/
@Ghost
@SubscribeEvent(priority = EventPriority.LOWEST)
private fun onJoin(e: PlayerJoinEvent) {
e.player.removeMeta("t_scoreboard_init")
Expand All @@ -88,6 +90,7 @@ private fun onJoin(e: PlayerJoinEvent) {
/**
* 离开游戏时释放记分板缓存
*/
@Ghost
@SubscribeEvent
private fun onQuit(e: PlayerQuitEvent) {
// 移除记分板缓存
Expand Down

0 comments on commit 1b59942

Please sign in to comment.