Skip to content

Commit

Permalink
admin
Browse files Browse the repository at this point in the history
  • Loading branch information
KTNG-3 committed Jan 29, 2023
1 parent 39aeb49 commit 0892b92
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
6 changes: 6 additions & 0 deletions data/ing/functions/admin/add.mcfunction
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# playsound

execute as @s at @s run playsound minecraft:ui.button.click master @s ~ ~ ~ 0.25 2 1

# script

execute as @s run tag @s add ing.Admin

execute as @s run function ing:trigger/pages/1
6 changes: 6 additions & 0 deletions data/ing/functions/admin/remove.mcfunction
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# playsound

execute as @s at @s run playsound minecraft:ui.button.click master @s ~ ~ ~ 0.25 2 1

# script

execute as @s run tag @s remove ing.Admin

execute as @s run function ing:trigger/pages/1
4 changes: 2 additions & 2 deletions data/ing/functions/trigger/pages/1.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ tellraw @s [{"text" : "----------- Helps -----------","color": "dark_aqua"}]
tellraw @s {"text" : " "}
tellraw @s [{"text" : ">> ","color":"dark_green","bold": true},{"text": "Info","color": "blue","clickEvent":{"action":"run_command","value":"/trigger ing.Help set 11"},"hoverEvent":{"action":"show_text","contents":[{"text":"Go To ` Info ` Page","bold":false,"color":"gray"}]}}]
tellraw @s {"text" : " "}
tellraw @s[tag=!ing.Admin] [{"text" : ">> ","color":"red","bold": true},{"text": "Administrator","color": "blue","clickEvent":{"action":"run_command","value":"/execute as @s run function ing:admin/add"},"hoverEvent":{"action":"show_text","contents":[{"text":"Administrator\n\nClick: Add me to Admin","bold":false,"color":"gray"}]}}]
tellraw @s[tag=ing.Admin] [{"text" : ">> ","color":"green","bold": true},{"text": "Administrator","color": "blue","clickEvent":{"action":"run_command","value":"/execute as @s run function ing:admin/remove"},"hoverEvent":{"action":"show_text","contents":[{"text":"Administrator\n\nClick: Remove me from Admin","bold":false,"color":"gray"}]}}]
tellraw @s[tag=!ing.Admin] [{"text" : ">> ","color":"red","bold": true},{"text": "Administrator","color": "blue","clickEvent":{"action":"run_command","value":"/execute as @s at @s run function ing:admin/add"},"hoverEvent":{"action":"show_text","contents":[{"text":"Administrator\n\nClick: Add me to Admin","bold":false,"color":"gray"}]}}]
tellraw @s[tag=ing.Admin] [{"text" : ">> ","color":"green","bold": true},{"text": "Administrator","color": "blue","clickEvent":{"action":"run_command","value":"/execute as @s at @s run function ing:admin/remove"},"hoverEvent":{"action":"show_text","contents":[{"text":"Administrator\n\nClick: Remove me from Admin","bold":false,"color":"gray"}]}}]
tellraw @s {"text" : " "}
execute if score ing_DayCount ing_Core.isActive matches 1 run tellraw @s [{"text" : ">> ","color":"green","bold": true},{"text": "Day Counter","color": "blue","clickEvent":{"action":"run_command","value":"/trigger ing.Help set 2"},"hoverEvent":{"action":"show_text","contents":[{"text":"Go To ` Day Counter ` Page","bold":false,"color":"gray"}]}}]
execute if score ing_EndCrystal ing_Core.isActive matches 1 run tellraw @s [{"text" : ">> ","color":"green","bold": true},{"text": "End Crystal Bossbar","color": "blue","clickEvent":{"action":"run_command","value":"/trigger ing.Help set 3"},"hoverEvent":{"action":"show_text","contents":[{"text":"Go To ` End Crystal Bossbar ` Page","bold":false,"color":"gray"}]}}]
Expand Down
5 changes: 3 additions & 2 deletions data/ing/functions/trigger/tick.mcfunction
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#playsound
execute as @s unless score @s ing.Help matches 0 run playsound minecraft:ui.button.click master @s ~ ~ ~ 0.25 2 1
# playsound

execute as @s at @s unless score @s ing.Help matches 0 run playsound minecraft:ui.button.click master @s ~ ~ ~ 0.25 2 1

# pages

Expand Down

0 comments on commit 0892b92

Please sign in to comment.