Scoreboard in commands.yml

I want to make a alias that runs the command
scoreboard players set #zähler temp <user input>
So I wrote
aliases:
timer:
- scoreboard players set #zähler temp $$1

but after the server started, the #zähler temp $$1 wasn’t there anymore.
So I tried
aliases:
timer:
- scoreboard players set \#zähler temp $$1
but the command was executed was scoreboard players set \#zähler temp $$1

(Yes, I’m german.)

Place it in "", the # is being parsed as a comment (Ref the yaml spec)

1 Like

- "scoreboard players set #zähler temp $$1" ?
It works!
Thank you