Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@
# SECURITY: only server operators (permission_level 2+, i.e. the vanilla
# /op list) can use this button. Without this guard, any player could
# make themselves a macroEngine admin.
execute if entity @s[level=2..] run tag @s add macroengine.admin
execute if entity @s[level=2..] run tellraw @s ["",{"text":"[MACROENGINE] ","color":"#00AAAA","bold":true},{"text":"✔ ","color":"green"},"Added as admin."]
execute unless entity @s[level=2..] run tellraw @s ["",{"text":"[MACROENGINE] ","color":"#00AAAA","bold":true},{"text":"✘ ","color":"red"},"This action requires server operator (op)."]
tag @s add macroengine.admin
tellraw @s ["",{"text":"[MACROENGINE] ","color":"#00AAAA","bold":true},{"text":"✔ ","color":"green"},"Added as admin."]
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# macroengine:setup/close_screen [INTERNAL]
dialog clear @s
tellraw @s ["",{"text":"[MACROENGINE] ","color":"#00AAAA","bold":true},{"text":"Setup screen closed.","color":"gray"}]
Loading