This is the code. If anyone can help me fix this it would mean a lot to me.
code_language.skript:
command /withdraw <integer>:
trigger:
if arg-1 is set:
if arg-1 is 1:
set {_withdraw} to 0.5
if arg-1 is 2:
set {_withdraw} to 1
if arg-1 is 3:
set {_withdraw} to 1.5
if arg-1 is 4:
set {_withdraw} to 2
if arg-1 is 5:
set {_withdraw} to 2.5
if {_withdraw} is less than or equal to {Stopwatch.%player's uuid%}:
set {Stopwatch.%player's uuid%} to {Stopwatch.%player's uuid%} - {_withdraw}
set {_arg1} to arg-1
set {_s} to paper of unbreaking 1 named "&6&lStopwatch" with custom model data 1 with all flags hidden
give arg-1 {_s} to player
if arg-1 is 1:
message "&6&lYou just withdrew %arg-1% stopwatch!" to player
else:
message "&6&lYou just withdrew %arg-1% stopwatches!" to player
else:
message "&6&lYou dont have that amount of stopwatches!" to player