Detect balance change?

Discussion in 'Plugin Development' started by EgyptianKing, Nov 17, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    EgyptianKing

    Hi, so for my server, rather than updating a scoreboard every x ticks, I'm going to be updating it based on events. I want to update the player's balance whenever he or she gains or loses money, how do you guys think I can achieve this?
     
  2. Offline

    extended_clip

    Yeh just modify Vault to fire a custom event when there is a successful transaction.
     
  3. Offline

    Skionz

    In the situation where you created your own economy write methods for setting/adding money and when these methods are called call some like onMoneyUpdate method in an interface.
     
    Konato_K likes this.
  4. Offline

    _Filip

    reflection magic
     
Thread Status:
Not open for further replies.

Share This Page