Skip to content

Commit

Permalink
#583 Updated packet layer to support bedrock.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shynixn committed Dec 22, 2024
1 parent ed788f9 commit 3235959
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2")

// Custom dependencies
implementation("com.github.shynixn.mcutils:common:2024.39")
implementation("com.github.shynixn.mcutils:packet:2024.51")
implementation("com.github.shynixn.mcutils:common:2024.43")
implementation("com.github.shynixn.mcutils:packet:2024.54")
implementation("com.github.shynixn.mcutils:database:2024.8")
implementation("com.github.shynixn.mcutils:sign:2024.3")
implementation("com.github.shynixn.mcutils:guice:2024.2")
Expand Down
6 changes: 4 additions & 2 deletions src/main/java/com/github/shynixn/blockball/BlockBallPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,15 @@ class BlockBallPlugin : JavaPlugin() {
language.placeHolderFun =
{ text, player ->
val placeHolderService = module.getService<PlaceHolderService>()
val gameService = module.getService<GameService>()
if (player != null) {
placeHolderService.replacePlaceHolders(text, player)
val game = gameService.getByPlayer(player)
placeHolderService.replacePlaceHolders(text, player, game)
} else {
text
}
}
reloadTranslation(language,BlockBallLanguageImpl::class.java)
reloadTranslation(language, BlockBallLanguageImpl::class.java)
logger.log(Level.INFO, "Loaded language file.")

// Guice
Expand Down

0 comments on commit 3235959

Please sign in to comment.