diff --git a/build.gradle.kts b/build.gradle.kts index 0e4591c..f9dd1f3 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -5,7 +5,7 @@ plugins { } group = "de.bypixeltv" -version = "1.5" +version = "1.6" repositories { mavenCentral() diff --git a/src/main/kotlin/de/bypixeltv/skcloudnet/elements/conditions/services/CondCloudnetServiceDeleted.kt b/src/main/kotlin/de/bypixeltv/skcloudnet/elements/conditions/services/CondCloudnetServiceDeleted.kt index fc68324..66a2098 100644 --- a/src/main/kotlin/de/bypixeltv/skcloudnet/elements/conditions/services/CondCloudnetServiceDeleted.kt +++ b/src/main/kotlin/de/bypixeltv/skcloudnet/elements/conditions/services/CondCloudnetServiceDeleted.kt @@ -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 } } diff --git a/src/main/kotlin/de/bypixeltv/skcloudnet/elements/conditions/services/CondCloudnetServicePrepared.kt b/src/main/kotlin/de/bypixeltv/skcloudnet/elements/conditions/services/CondCloudnetServicePrepared.kt index ba6392d..c31442e 100644 --- a/src/main/kotlin/de/bypixeltv/skcloudnet/elements/conditions/services/CondCloudnetServicePrepared.kt +++ b/src/main/kotlin/de/bypixeltv/skcloudnet/elements/conditions/services/CondCloudnetServicePrepared.kt @@ -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 } } diff --git a/src/main/kotlin/de/bypixeltv/skcloudnet/elements/conditions/services/CondCloudnetServiceRunning.kt b/src/main/kotlin/de/bypixeltv/skcloudnet/elements/conditions/services/CondCloudnetServiceRunning.kt index 1e6dc27..aaac322 100644 --- a/src/main/kotlin/de/bypixeltv/skcloudnet/elements/conditions/services/CondCloudnetServiceRunning.kt +++ b/src/main/kotlin/de/bypixeltv/skcloudnet/elements/conditions/services/CondCloudnetServiceRunning.kt @@ -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 } } diff --git a/src/main/kotlin/de/bypixeltv/skcloudnet/elements/conditions/services/CondCloudnetServiceStopping.kt b/src/main/kotlin/de/bypixeltv/skcloudnet/elements/conditions/services/CondCloudnetServiceStopping.kt index 54079b1..5f49253 100644 --- a/src/main/kotlin/de/bypixeltv/skcloudnet/elements/conditions/services/CondCloudnetServiceStopping.kt +++ b/src/main/kotlin/de/bypixeltv/skcloudnet/elements/conditions/services/CondCloudnetServiceStopping.kt @@ -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 } } diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 9e95a43..c578350 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,6 +1,6 @@ main: "de.bypixeltv.skcloudnet.Main" name: "SkCloudnet" -version: "v1.5" +version: "v1.6" api-version: "1.20" author: "byPixelTV"