Hey! idk why This Skript not work :/
Can anyone help me?
Can anyone help me?
code_language.skript:
command /pay <text=help> <player>:
permission: *
trigger:
if arg-1 is set:
if arg-2 is not set:
message ""
message "&6&l✩&a&l&oMoney&6&l✩"
message "&7-&8/&6Pay &7<&6Amount&7> <&6Player&7>"
message "&6&l✩&a&l&oMoney&6&l✩"
message ""
else if arg-2 is set:
if arg-1 is smaller than {Money.%player%.Cash}:
set {A} to arg-1
remove arg-1 parsed as a number from {Money.%player%.Cash}
add arg-1 parsed as a number to {Money.%arg-2%.Cash}
send "" to arg-2
send "&6&l✩&a&l&oMoney&6&l✩" to arg-2
send "&bConsole &ahas given you &6&o%{A}% &aCash" to arg-2
send "&6&l✩&a&l&oMoney&6&l✩" to arg-2
send ""
else if arg-1 is greater than {Money.%player%.Cash}:
send "1"