Skip to content

Commit

Permalink
change: setting commands.general.removedFromServer to empty will remo…
Browse files Browse the repository at this point in the history
…ve "removed from server" message
  • Loading branch information
acrylic-style committed Jan 27, 2025
1 parent 8d2b31d commit 234c484
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
}

group = "net.azisaba.spicyazisaban"
version = "2.0.0-${getBranch()}-${getGitHash()}${if (hasUncommittedChanges()) "-debug" else ""}"
version = "2.0.1"

java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
Expand Down Expand Up @@ -100,7 +100,7 @@ subprojects {
include("**")

val tokenReplacementMap = mapOf(
"version" to project.version,
"version" to "${project.version}${getBranch()}-${getGitHash()}${if (hasUncommittedChanges()) "-debug" else ""}",
"name" to project.rootProject.name,
"debugBuild" to hasUncommittedChanges().toString(),
"devBuild" to (getBranch() != "main").toString(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,7 @@ object Util {
* Sends the message to specified server after 100 + (random time in range 0-300) seconds.
*/
fun ServerInfo.broadcastMessageAfterRandomTime(server: String = this.name) {
if (SABMessages.Commands.General.removedFromServer.isEmpty()) return
SpicyAzisaBan.instance.connection.getGroupByServer(server).then { serverOrGroup ->
val s = SABMessages.getBannedMessage(serverOrGroup ?: server).replaceVariables().translate()
val random = 100 + (Math.random() * 300).toLong()
Expand Down

0 comments on commit 234c484

Please sign in to comment.