-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move voice chat check back to on_player_join, but schedule it (0.12.6)
- Loading branch information
Showing
3 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
Brilliance Datapack/data/do2/functions/voice_chat/set.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
scoreboard players set @s do2.utility.voiceChat 0 | ||
function do2:voice_chat/check | ||
execute if score @s do2.utility.voiceChat matches 0 run tag @s add do2.tags.audio.enabled | ||
execute unless score @s do2.utility.voiceChat matches 0 run tag @s remove do2.tags.audio.enabled | ||
execute as @a run scoreboard players set @s do2.utility.voiceChat 0 | ||
execute as @a run function do2:voice_chat/check | ||
execute as @a if score @s do2.utility.voiceChat matches 0 run tag @s add do2.tags.audio.enabled | ||
execute as @a unless score @s do2.utility.voiceChat matches 0 run tag @s remove do2.tags.audio.enabled |