From 9c0eccc5e8f1fb69fa2a55830b5d28d4e07d6497 Mon Sep 17 00:00:00 2001 From: FrustratedProgrammer Date: Sat, 14 Dec 2024 01:39:34 -0600 Subject: [PATCH] Check for onServer before datapack setup. --- .../data/do2/functions/events/on_datapack_load.mcfunction | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Brilliance Datapack/data/do2/functions/events/on_datapack_load.mcfunction b/Brilliance Datapack/data/do2/functions/events/on_datapack_load.mcfunction index 5518ffee..2e0e567a 100644 --- a/Brilliance Datapack/data/do2/functions/events/on_datapack_load.mcfunction +++ b/Brilliance Datapack/data/do2/functions/events/on_datapack_load.mcfunction @@ -3,7 +3,8 @@ execute as @a[scores={do2.logs.datapack_setup=1..}] run tellraw @s "§f[§9B§r] # - End Log - # Check if I'm on the server or not. -scoreboard players set $dungeon do2.utility.onServer 0 +scoreboard objectives add do2.utility.onServer dummy "Checking if this Brilliance is loaded on the server" +execute unless score $dungeon do2.utility.onServer matches 0.. run scoreboard players set $dungeon do2.utility.onServer 0 function do2:agronet/test_for_agronet # Setup scoreboard function do2:scoreboard/setup/all