Skip to content

Commit

Permalink
fix: prevent scheduled executions when task is deactivated after comm…
Browse files Browse the repository at this point in the history
…and is scheduled already
  • Loading branch information
titivermeesch committed Apr 16, 2024
1 parent 2e7af0f commit 9337c68
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ java {
}

group = 'me.playbosswar.com'
version = '8.5.5'
version = '8.5.6'
description = 'CommandTimer'

repositories {
Expand Down Expand Up @@ -61,7 +61,7 @@ publishing {
maven(MavenPublication) {
groupId = 'me.playbosswar.com'
artifactId = 'commandtimer'
version = '8.5.5'
version = '8.5.6'

from components.java
}
Expand Down
4 changes: 2 additions & 2 deletions java8-build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ java {
}

group = 'me.playbosswar.com'
version = '8.5.5'
version = '8.5.6'
description = 'CommandTimer'

repositories {
Expand Down Expand Up @@ -69,7 +69,7 @@ publishing {
maven(MavenPublication) {
groupId = 'me.playbosswar.com'
artifactId = 'commandtimer'
version = '8.5.5'
version = '8.5.6'

from components.java
}
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/me/playbosswar/com/tasks/TasksManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,10 @@ public void addTaskCommandExecution(TaskCommand taskCommand) {
}

public void processCommandExecution(TaskCommand taskCommand) {
if(!taskCommand.getTask().isActive()) {
return;
}

Gender gender = taskCommand.getGender();

if(gender.equals(Gender.CONSOLE)) {
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: me.playbosswar.com.CommandTimerPlugin
name: "CommandTimer"
version: "8.5.5"
version: "8.5.6"
description: "Schedule commands like you want"
author: PlayBossWar
api-version: 1.13
Expand Down

0 comments on commit 9337c68

Please sign in to comment.