Skip to content

Commit

Permalink
Merge pull request #176 from aksiome/schedule-rework
Browse files Browse the repository at this point in the history
🚚 Rename `#bs.schedule:cancel` to `#bs.schedule:cancel_all`
  • Loading branch information
aksiome authored Mar 25, 2024
2 parents 6f94bb2 + 27b6cc8 commit 3ce99f6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ scoreboard players set #packtest.schedule.cancel_all bs.data 0
function #bs.schedule:schedule {with:{command:"scoreboard players add #packtest.schedule.cancel_all bs.data 1",time:1}}
function #bs.schedule:schedule {with:{command:"scoreboard players add #packtest.schedule.cancel_all bs.data 1",time:1,id:{cancel:"all"}}}
function #bs.schedule:schedule {with:{command:"scoreboard players add #packtest.schedule.cancel_all bs.data 1",time:1,id:{cancel:"all"}}}
function #bs.schedule:cancel {with:{id:{cancel:"all"}}}
function #bs.schedule:cancel_all {with:{id:{cancel:"all"}}}
await score #packtest.schedule.cancel_all bs.data matches 1
4 changes: 2 additions & 2 deletions docs/modules/schedule.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ You can find below all functions available in this module.
::::{tab-set}
:::{tab-item} All

```{function} #bs.schedule:cancel
```{function} #bs.schedule:cancel_all
Cancel all scheduled commands that match the given id.
Expand All @@ -27,7 +27,7 @@ Cancel all scheduled commands that match the given id.

*Cancel all commands that have an `id` parameter set to "foo":*
```mcfunction
function #bs.schedule:cancel {with:{id:"foo"}}
function #bs.schedule:cancel_all {with:{id:"foo"}}
```

:::
Expand Down

0 comments on commit 3ce99f6

Please sign in to comment.