Skip to content

Commit

Permalink
#605 Added duration property.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shynixn committed Jan 31, 2025
1 parent bf27bce commit 9a2c50f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
9 changes: 4 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ repositories {
mavenLocal()
mavenCentral()
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven(System.getenv("SHYNIXN_MCUTILS_REPOSITORY")) // All MCUTILS libraries are private and not OpenSource.
maven(System.getenv("SHYNIXN_MCUTILS_REPOSITORY_2025")) // All MCUTILS libraries are private and not OpenSource.
}

Expand All @@ -33,10 +32,10 @@ dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2")

// Custom dependencies
implementation("com.github.shynixn.mcutils:common:2025.1")
implementation("com.github.shynixn.mcutils:packet:2025.1")
implementation("com.github.shynixn.mcutils:database:2024.8")
implementation("com.github.shynixn.mcutils:sign:2024.3")
implementation("com.github.shynixn.mcutils:common:2025.4")
implementation("com.github.shynixn.mcutils:packet:2025.3")
implementation("com.github.shynixn.mcutils:database:2025.2")
implementation("com.github.shynixn.mcutils:sign:2025.1")
}

tasks.withType<KotlinCompile> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import com.github.shynixn.mcutils.common.sound.SoundServiceImpl
import com.github.shynixn.mcutils.database.api.CachePlayerRepository
import com.github.shynixn.mcutils.database.api.PlayerDataRepository
import com.github.shynixn.mcutils.database.impl.AutoSavePlayerDataRepositoryImpl
import com.github.shynixn.mcutils.database.impl.CachePlayerDataRepositoryImpl
import com.github.shynixn.mcutils.database.impl.CachedPlayerDataRepositoryImpl
import com.github.shynixn.mcutils.database.impl.ConfigSelectedRepositoryImpl
import com.github.shynixn.mcutils.packet.api.PacketService
import com.github.shynixn.mcutils.packet.api.RayTracingService
Expand Down Expand Up @@ -84,7 +84,7 @@ class BlockBallDependencyInjectionModule(
)
val playerDataRepository = AutoSavePlayerDataRepositoryImpl(
1000 * 60L * plugin.config.getInt("database.autoSaveIntervalMinutes"),
CachePlayerDataRepositoryImpl(configSelectedPlayerDataRepository, plugin.minecraftDispatcher),
CachedPlayerDataRepositoryImpl(configSelectedPlayerDataRepository, plugin.minecraftDispatcher),
plugin.scope, plugin.minecraftDispatcher
)
module.addService<PlayerDataRepository<PlayerInformation>>(playerDataRepository)
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/lang/en_us.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ gameAlreadyExistsMessage:
type: "CHAT"
# The primary text to be sent.
text: "&0&l[&f&lBlockBall&0&l]&c Game %1$1s already exists."
# Only available for type "ACTIONBAR". The time until the action bar message disappears.
durationInTicks: 60
# Only available for type "TITLE". Adds a subTitle.
subTitle: ""
# Only available for type: "TITLE". Adds a fade in effect.
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/lang/es_es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ gameAlreadyExistsMessage:
type: "CHAT"
# The primary text to be sent.
text: "&0&l[&f&lBlockBall&0&l]&c El juego %1$1s ya existe."
# Only available for type "ACTIONBAR". The time until the action bar message disappears.
durationInTicks: 60
# Only available for type "TITLE". Adds a subTitle.
subTitle: ""
# Only available for type: "TITLE". Adds a fade in effect.
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/lang/zh_cn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ gameAlreadyExistsMessage:
type: "CHAT"
# 所发送的信息。
text: "&0&l[&f&lBlockBall&0&l]&c 游戏 %1$1s 已存在。"
# Only available for type "ACTIONBAR". The time until the action bar message disappears.
durationInTicks: 60
# 仅用于 "TITLE" 类型,设置副标题。
subTitle: ""
# 仅用于 "TITLE" 类型,设置淡入时间。
Expand Down

0 comments on commit 9a2c50f

Please sign in to comment.