Skip to content

Commit 234c484

Browse files
committed
change: setting commands.general.removedFromServer to empty will remove "removed from server" message
1 parent 8d2b31d commit 234c484

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ plugins {
88
}
99

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

1313
java {
1414
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
@@ -100,7 +100,7 @@ subprojects {
100100
include("**")
101101

102102
val tokenReplacementMap = mapOf(
103-
"version" to project.version,
103+
"version" to "${project.version}${getBranch()}-${getGitHash()}${if (hasUncommittedChanges()) "-debug" else ""}",
104104
"name" to project.rootProject.name,
105105
"debugBuild" to hasUncommittedChanges().toString(),
106106
"devBuild" to (getBranch() != "main").toString(),

common/src/main/kotlin/net/azisaba/spicyAzisaBan/util/Util.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,7 @@ object Util {
399399
* Sends the message to specified server after 100 + (random time in range 0-300) seconds.
400400
*/
401401
fun ServerInfo.broadcastMessageAfterRandomTime(server: String = this.name) {
402+
if (SABMessages.Commands.General.removedFromServer.isEmpty()) return
402403
SpicyAzisaBan.instance.connection.getGroupByServer(server).then { serverOrGroup ->
403404
val s = SABMessages.getBannedMessage(serverOrGroup ?: server).replaceVariables().translate()
404405
val random = 100 + (Math.random() * 300).toLong()

0 commit comments

Comments
 (0)