Explorar el Código

Merge branch 'master' of github.com:LTCatt/LTW3

HerobrineXia hace 6 años
padre
commit
82f799ee81
Se han modificado 1 ficheros con 5 adiciones y 2 borrados
  1. 5 2
      data/ltw/functions/main/player_enter.mcfunction

+ 5 - 2
data/ltw/functions/main/player_enter.mcfunction

@@ -1,6 +1,5 @@
 # 当玩家加入游戏时触发
 # 当玩家加入游戏时触发
 team join player @s
 team join player @s
-bossbar set ltw:notice players @a
 
 
 advancement revoke @s only lib:damage_dealt
 advancement revoke @s only lib:damage_dealt
 advancement revoke @s only lib:damage_taken
 advancement revoke @s only lib:damage_taken
@@ -19,5 +18,9 @@ execute if entity @s[tag=!watcher] unless score @s game_id = $ game_id run funct
 # 如果不是旁观且局号正确:游戏中掉线
 # 如果不是旁观且局号正确:游戏中掉线
 execute if entity @s[tag=!watcher] if score @s game_id = $ game_id run function ltw:main/player_enter_rejoin
 execute if entity @s[tag=!watcher] if score @s game_id = $ game_id run function ltw:main/player_enter_rejoin
 
 
+# 更新 Bossbar
+bossbar set ltw:notice players @a
+function lib:bossbar/show
+
 # FIXME: 不再允许偷到 -1 分
 # FIXME: 不再允许偷到 -1 分
-# FIXME: 旁观者在游戏开局的时候似乎会看到 2 然后 ding
+# FIXME: 旁观者在游戏开局的时候似乎会看到 2 然后 ding