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

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

feerko

Member
Feb 19, 2017
70
1
0
27
Hello
there is any addon which has 'on player balance change' or something like this?
 
One thought off hand.
Save players balance inside On Join to a variable.
Then use the On Every to compare current balance to the stored one to see if there is a change
 
Im not sure. if the Vault has events if player got changed money. im not expert at java. maybe you can look around at source code with vault. then hook with skelett (You can create own events with Skelett)


#edit

i have look around in open soruce, maybe it this the events?

net.milkbowl.vault.economy.EconomyResponse

#more edit:

Try it out: go to pfad:
ServerFile/Plugins/Skelett/CustomEvents.yml

Open it with notepad
add this
code_language.skript:
  3:
    Event: "net.milkbowl.vault.economy.EconomyResponse"
    Syntax: "[on] player balance chaning"
 
Last edited by a moderator:
Vault has never had and never will have events. A workaround would be to handle the economy in Skript itself. If you really need Vault for supporting other plugins, you can suggest an addon for registering Skript as an economy provider or an addon that integrates directly with a specific economy provider.
 
Actually, if you're using Essentials for economy, WolvSK has the following event for your needs:
code_language.skript:
[on] [user] (balance|money) (update|change)
If you aren't using Essentials but other economy system, and that economy plugin has an event for it you could use either Skript-Mirror (I recommend this one, kind of personal preference though) or Skellett to register it or ask an addon developer like Sharpaws to hook it into their addons.