I want to add the value of a variable to a player's money balance with Essentials and Vault

  • 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!

Status
Not open for further replies.

AustinJason

Member
Apr 10, 2020
4
0
0
My code:

variables:
{income::%player%} = 0

command /gens:
description: Lists generators
permission: list.gens
trigger:
open chest with 1 row named "&cGens" to player
wait 1 tick
format slot 0 of player with grass named "Grass gen" with lore "+1 income" to close then run "incomeadd 1 to 'player'"
wait 1 tick
make the player execute "/pay AustinJason 100"

command /incomeadd <money> <player>:
description: adds income
permission: income.add
trigger:
add arg-1 to {income::%player%}

every second in "world":
add {income::%player%} to balance of all players #<=Here
 
Status
Not open for further replies.