Hello i have a code:
but when i type "/coins set MataxePlay 5" it returns:
and when i type "/coins give MataxePlay 10" it returns:
you can see that "give" command not working.. plzz help
code_language.skript:
command /coins [<text>] [<text>] [<text>]:
Usage: /coins [give|set] [player] [amount]
trigger:
if arg-1 is not set:
send "&6You have &e&l%{coins::%player%}% Coins" to player
if arg-1 is "give":
if player has the permission "coins.admin":
if arg-2 and arg-3 are set:
#set {coins::%arg-2%} to arg-3 + {coins::%arg-2%}
add arg-3 to {coins::%arg-2%}
send "&6Added &e&l%arg-3% Coins &r&6for &b%arg-2%&6! &6Actual Coins: &e&l%{coins::%arg-2%}% Coins" to player
else:
send "/coins [give|set] [player] [amount]" to player
else:
send "&6You have &e&l%{coins::%player%}% Coins" to player
else if arg-1 is "set":
if player has the permission "coins.admin":
if arg-2 and arg-3 is set:
set {coins::%arg-2%} to arg-3
send "&6Setted &e&l%arg-3% Coins &r&6for &b%arg-2%&6! &6Actual Coins: &e&l%{coins::%arg-2%}% Coins" to player
else:
send "/coins [give|set] [player] [amount]" to player
else:
send "&6You have &e&l%{coins::%player%}% Coins" to player
else:
if player has the permission "coins.admin":
send "/coins [give|set] [player] [amount]" to player
else:
send "&6You have &e&l%{coins::%player%}% Coins" to player
and when i type "/coins give MataxePlay 10" it returns:
you can see that "give" command not working.. plzz help