Okay guys, so i have made my own currency on my server, and i want to make a signshop that works with it.
It wont execute the console command but it does message me and take 1 block
on rightclick on sign:
if {shop.item.%location of block%} is set:
if 1st line is "&6Sælg":
if number of {shop.item.%location of block%} in player's inventory is greater or equal to {shop.amount.%location of block%}:
remove {shop.amount.%location of block%} of {shop.item.%location of block%} from player's inventory
execute console command "/penge tilføj %player% {shop.price.%location of block%}"
send "&a&l+%{shop.price.%location of block%}%"
else:
send "&cDu har ikke tilstrækkelige midler til dette!"
[doublepost=1540772062,1540768996][/doublepost]execute console command "/penge tilføj %player% {shop.price.%location of block%}"
That line dosent work
It wont execute the console command but it does message me and take 1 block
on rightclick on sign:
if {shop.item.%location of block%} is set:
if 1st line is "&6Sælg":
if number of {shop.item.%location of block%} in player's inventory is greater or equal to {shop.amount.%location of block%}:
remove {shop.amount.%location of block%} of {shop.item.%location of block%} from player's inventory
execute console command "/penge tilføj %player% {shop.price.%location of block%}"
send "&a&l+%{shop.price.%location of block%}%"
else:
send "&cDu har ikke tilstrækkelige midler til dette!"
[doublepost=1540772062,1540768996][/doublepost]execute console command "/penge tilføj %player% {shop.price.%location of block%}"
That line dosent work