Skip to content

Commit

Permalink
Fixed AFK
Browse files Browse the repository at this point in the history
  • Loading branch information
ShoukaSeikyo committed Oct 26, 2018
1 parent d4b9cff commit 11fee48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions data/holycube_afk/functions/logic/apply.mcfunction
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
scoreboard players set #HC4_AFK#t_tmp hc4-config 12
scoreboard players operation #HC4_AFK#t_tmp hc4-config *= #HC4_AFK#t hc4-config

scoreboard players add @a[nbt={playerGameType:0}] hc4.afk 1
execute as @a[nbt={playerGameType:0},scores={hc4.vehicle=1}] run function holycube_afk:logic/apply_in_vehicle
execute as @a[nbt={playerGameType:0},scores={hc4.vehicle=0}] run function holycube_afk:logic/apply_on_foot
execute as @a[nbt=!{playerGameType:0}] run tag @s remove hc_afk
Expand Down

0 comments on commit 11fee48

Please sign in to comment.