Hi, I'm trying to make it so players can convert "karma" to money but I can't seem to get it to work
Here's my current code:
(There's a GUI that makes a player execute /karma250 when an item is clicked)
but whenever I try to use the command, it gives me "&c&lTRANSACTION FAILED! KARMA NEEDS TO BE MORE THAN 250!" when {karma.%player%} is set to 1000000.
Here's my current code:
code_language.skript:
command /karma250:
trigger:
set {karma.required.%player%} to 250
if {karma.%player%} is greater than {karma.required.%player%}:
execute console command "/eco give %player% 100"
add -250 to {karma.%player%}
send "&a&lTransaction Complete!"
else:
send "&c&lTRANSACTION FAILED! KARMA NEEDS TO BE MORE THAN 250!"
but whenever I try to use the command, it gives me "&c&lTRANSACTION FAILED! KARMA NEEDS TO BE MORE THAN 250!" when {karma.%player%} is set to 1000000.