Skip to content

Commit

Permalink
Updates to checks for do2.staff
Browse files Browse the repository at this point in the history
  • Loading branch information
Frustrated-Programmer committed Dec 22, 2024
1 parent af74feb commit b81d68c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ summon minecraft:armor_stand -514 114.7 1956 {CustomName:'{"text":"Settings cann
summon minecraft:item_display -514.4 116 1956 {Tags:["do2.stop_settings"],width:1f,height:1f,item:{id:"minecraft:barrier",Count:1b},view_range:2f,transformation:{left_rotation:[0f,-1f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[0.8f,0.8f,2f]}}
fill -515 118 1954 -515 114 1958 minecraft:iron_bars replace air

execute as @a[x=-539,dx=25,y=113,dy=7,z=1938,dz=23] if entity @s[tag=do2.staff,tag=!warned] run tellraw @s ["",{"text":"§f[§9B§r]: You have the tag [§bdo2.staff§r], and this has stopped:\n - §5tp "},{"selector":"@s","color":"dark_purple"},{"text":"§5-512 114 1956 90 0\n§f[§9B§r]: Click "},{"text":"§b[here]","clickEvent":{"action":"run_command","value":"/tp @s -512 114 1956 90 0"}},{"text":" to run the command anyway."}]
execute as @a[x=-539,dx=25,y=113,dy=7,z=1938,dz=23] if entity @s[tag=do2.staff,tag=!do2.staff.warned] run tag @s add do2.staff.warned
execute as @a[x=-539,dx=25,y=113,dy=7,z=1938,dz=23] unless entity @s[tag=do2.staff] run tp @s -512 114 1956 90 0
execute as @a[x=-539,dx=25,y=113,dy=7,z=1938,dz=23] if entity @s[tag=do2.staff] run tellraw @s ["",{"text":"§f[§9B§r]: You have the tag [§bdo2.staff§r], and this has stopped:\n - §5tp "},{"selector":"@s","color":"dark_purple"},{"text":"§5-512 114 1956 90 0\n§f[§9B§r]: Click "},{"text":"§b[here]","clickEvent":{"action":"run_command","value":"/tp @s -512 114 1956 90 0"}},{"text":" to run the command anyway."}]
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
kill @e[tag=do2.stop_settings]
execute as @a[tag=do2.staff.warned] run tag @s remove do2.staff.warned
fill -515 118 1954 -515 114 1958 minecraft:air replace iron_bars
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ execute if score $dungeon do2.run.active matches 2 as @a[team=do2.spectators] ru

# Enforce spectators to stay in lobby. (INSTANCE ONLY)
execute unless score $dungeon do2.utility.onInstance matches 1 run return 0
execute as @a[team=do2.spectators] if score $dungeon do2.run.active matches 3 at @s if entity @p[team=do2.players,distance=..1] run tellraw @s {"text":"Game is over, you are unable to spectate purchases.","color":"light_purple"}
execute as @a[team=do2.spectators] if score $dungeon do2.run.active matches 3 at @s if entity @p[team=do2.players,distance=..1] run tp @s -524 114 1980
execute as @a[team=do2.spectators] if score $dungeon do2.run.active matches 3 at @s if entity @p[team=do2.players,distance=..1] unless entity @s[tag=do2.staff] run tellraw @s {"text":"Game is over, you are unable to spectate purchases.","color":"light_purple"}
execute as @a[team=do2.spectators] if score $dungeon do2.run.active matches 3 at @s if entity @p[team=do2.players,distance=..1] unless entity @s[tag=do2.staff] run tp @s -524 114 1980


# Game isn't active YET.
Expand Down
4 changes: 2 additions & 2 deletions Brilliance Datapack/data/do2/functions/version.mcfunction
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# DATAPACK VERSION NUMBER: 0.13.21
# DATAPACK VERSION NUMBER: 0.13.22

tellraw @s ["",{"text":"The §o§n§aBrilliance Datapack§r's version is: [§b0.13.21§r] Check latest version "},{"text":"§o§b§nhere§r","clickEvent":{"action":"open_url","value":"https://github.com/trackedout/Brilliance/blob/main/Brilliance%20Datapack/data/do2/functions/version.mcfunction"}},{"text":"."}]
tellraw @s ["",{"text":"The §o§n§aBrilliance Datapack§r's version is: [§b0.13.22§r] Check latest version "},{"text":"§o§b§nhere§r","clickEvent":{"action":"open_url","value":"https://github.com/trackedout/Brilliance/blob/main/Brilliance%20Datapack/data/do2/functions/version.mcfunction"}},{"text":"."}]

0 comments on commit b81d68c

Please sign in to comment.