Skip to content

Commit

Permalink
removing tick and better readme
Browse files Browse the repository at this point in the history
  • Loading branch information
lullaby6 committed Feb 28, 2025
1 parent 1ee7ba8 commit 45414a6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,16 @@ Custom colors:
/data modify storage sleeping_messages:config message_color set value "white"
```

Bypass player sleeping message:
Disable sleeping messages for a player:

```mcfunction
/tag <player> add sleeping_messages.player.bypass
/tag <player> add sleeping_messages.player.disabled
```

Enable sleeping messages for a player:

```mcfunction
/tag <player> remove sleeping_messages.player.disabled
```

Disable:
Expand Down
2 changes: 1 addition & 1 deletion data/sleeping_messages/function/sleep.mcfunction
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
advancement revoke @s only sleeping_messages:sleep

execute if entity @s[tag=sleeping_messages.player.bypass] run return fail
execute if entity @s[tag=sleeping_messages.player.disabled] run return fail

function sleeping_messages:message

0 comments on commit 45414a6

Please sign in to comment.