Money Error

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Harty0012345

Member
Jul 6, 2023
12
1
3
Hello,
I am stuck on creating an economy skript for my server so I can use it in shops, the command for staff to get coins to put in shops is not working, and coming up with an error like this
error money.png

Here is my code:

command /coin [text]:
permission: money.receive
aliases: /money
trigger:
execute command "/give %player% paper{display:{Name:'[{""text""":""Banknote"",""italic"":true,""bold""":true}]',Lore:['[{""text"":""$<arg-1>"",""italic"":false,""color"":""green""}]']}} 1"

Please Help.
Thanks!
 
you have to do "make the server execute command "<command>" ", with just "execute command" the script simply doesnt know which entity executes it.


also heres a simplier command:

command /moneygive <number>:
trigger:
if player has permission "money.receive":
add arg-1 to player's balance
send "&aSuccesfully added %arg-1%$ to your balance." to player
else:
send "&cYou do not have permission to execute this command." to player
 
Last edited:
you have to do "make the server execute command "<command>" ", with just "execute command" the script simply doesnt know which entity executes it.


also heres a simplier command:

command /moneygive <number>:
trigger:
if player has permission "money.receive":
add arg-1 to player's balance
send "&aSuccesfully added %arg-1%$ to your balance." to player
else:
send "&cYou do not have permission to execute this command." to player
Isn't working...
 
there is a triple """ in " [{""text""":""Banknote"",""italic"":true,""bold""":true}] " ( after bold )