-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update readme for new repo name and contents
- Loading branch information
Showing
4 changed files
with
97 additions
and
97 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Documentation | ||
|
||
You can use the AFK functionality by adding functions to the `#afk:away` and | ||
`#afk:back` function tags. Functions in both tags are called as the player at | ||
the player's position. | ||
|
||
The example below is a very simple datapack that kicks AFK players if they | ||
aren't specatating. | ||
|
||
**kick-afk-players/data/afk/tags/functions/away.json** | ||
|
||
```json | ||
{ "values": ["afk_kick:kick"] } | ||
``` | ||
|
||
**kick-afk-players/data/afk_kick/functions/kick.mcfunction** | ||
|
||
```mcfunction | ||
execute if entity @s[gamemode=!spectator] run kick @s AFK | ||
``` |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.