File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
common/src/main/kotlin/net/azisaba/spicyAzisaBan/util Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ plugins {
88}
99
1010group = " net.azisaba.spicyazisaban"
11- version = " 2.0.0- ${getBranch()} - ${getGitHash()}${ if (hasUncommittedChanges()) " -debug " else " " } "
11+ version = " 2.0.1 "
1212
1313java {
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(),
Original file line number Diff line number Diff 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()
You can’t perform that action at this time.
0 commit comments