Skip to content

Commit

Permalink
Refixed the bug
Browse files Browse the repository at this point in the history
  • Loading branch information
byPixelTV committed Apr 12, 2024
1 parent 57d3418 commit c3069b3
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group = "de.bypixeltv"
version = "1.5"
version = "1.6"

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ class CondCloudnetServiceDeleted : Condition() {
override fun check(e: Event?): Boolean {
val service = service?.getSingle(e) ?: return isNegated
return if (cnServiceProvider.serviceByName(service)?.lifeCycle()?.name == "DELETED") {
isNegated
} else {
!isNegated
} else {
isNegated
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ class CondCloudnetServicePrepared : Condition() {
override fun check(e: Event?): Boolean {
val service = service?.getSingle(e) ?: return isNegated
return if (cnServiceProvider.serviceByName(service)?.lifeCycle()?.name == "PREPARED") {
isNegated
} else {
!isNegated
} else {
isNegated
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ class CondCloudnetServiceRunning : Condition() {
override fun check(e: Event?): Boolean {
val service = service?.getSingle(e) ?: return isNegated
return if (cnServiceProvider.serviceByName(service)?.lifeCycle()?.name == "RUNNING") {
isNegated
} else {
!isNegated
} else {
isNegated
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ class CondCloudnetServiceStopping : Condition() {
override fun check(e: Event?): Boolean {
val service = service?.getSingle(e) ?: return isNegated
return if (cnServiceProvider.serviceByName(service)?.lifeCycle()?.name == "STOPPING") {
isNegated
} else {
!isNegated
} else {
isNegated
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
main: "de.bypixeltv.skcloudnet.Main"
name: "SkCloudnet"
version: "v1.5"
version: "v1.6"
api-version: "1.20"

author: "byPixelTV"
Expand Down

0 comments on commit c3069b3

Please sign in to comment.