Skip to content

Commit

Permalink
#552 Fixed ball spawning in minigame lobbies.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shynixn committed Sep 17, 2024
1 parent 78bbd1a commit fdd2e01
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 8 deletions.
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

group = "com.github.shynixn"
version = "7.3.0"
version = "7.3.1"

repositories {
mavenLocal()
Expand All @@ -26,7 +26,7 @@ tasks.register("printVersion") {

dependencies {
// Compile Only
compileOnly("me.clip:placeholderapi:2.9.2")
compileOnly("me.clip:placeholderapi:2.11.6")
compileOnly("org.spigotmc:spigot-api:1.18.2-R0.1-SNAPSHOT")

// Library dependencies with legacy compatibility, we can use more up-to-date version in the plugin.yml
Expand All @@ -42,7 +42,7 @@ dependencies {

// Custom dependencies
implementation("com.github.shynixn.mcutils:common:2024.23")
implementation("com.github.shynixn.mcutils:packet:2024.33")
implementation("com.github.shynixn.mcutils:packet:2024.38")
implementation("com.github.shynixn.mcutils:database:2024.2")
implementation("com.github.shynixn.mcutils:sign:2024.3")
implementation("com.github.shynixn.mcutils:guice:2024.2")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ class SoccerMiniGameImpl constructor(
playing = true
status = GameState.RUNNING
matchTimeIndex = -1
ballEnabled = true
switchToNextMatchTime()
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@file:Suppress("UselessCallOnNotNull")

package com.github.shynixn.blockball.impl.service

import com.github.shynixn.blockball.contract.SoccerGame
Expand Down Expand Up @@ -58,8 +60,8 @@ class DependencyPlaceHolderServiceImpl @Inject constructor(
return "blockball"
}

override fun onPlaceholderRequest(player: Player?, params: String?): String? {
if (params == null) {
override fun onPlaceholderRequest(player: Player?, params: String): String? {
if (params.isNullOrBlank()) {
return null
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ class GameServiceImpl @Inject constructor(
scoreboardService,
commandService,
soccerBallFactory
)
).also {
it.ballEnabled = false
}
}

games.add(game)
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin-legacy.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: BlockBall
version: 7.3.0
version: 7.3.1
author: Shynixn
website: https://www.spigotmc.org/members/shynixn.63455/
main: com.github.shynixn.blockball.BlockBallPlugin
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: BlockBall
version: 7.3.0
version: 7.3.1
author: Shynixn
website: https://www.spigotmc.org/members/shynixn.63455/
main: com.github.shynixn.blockball.BlockBallPlugin
Expand Down

0 comments on commit fdd2e01

Please sign in to comment.