scoreboard not update when player get money (essentialsx-vault)

Discussion in 'Plugin Development' started by lomd5, Apr 3, 2020.

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

    lomd5

    Hello i making lobby system, but when player get money, scoreboard not update... i need to update scoreboard every 2 second, but i dont know how...

    code: https://pastebin.com/fjm1RWiG
     
  2. To update every two seconds, you can use a bukkit runnable.
     
  3. Offline

    lomd5

    I try it... oh but i think its better to update if player get money (essentialsx)
     
  4. Offline

    timtower Administrator Administrator Moderator

    There are no events for that though.
     
  5. Maybe you could use a PlayerCommandPreprocessEvent: if the command is to give the player money, update the scoreboard
     
  6. Offline

    timtower Administrator Administrator Moderator

    Then you still have shops, timed tasks etc.
     
  7. Offline

    lomd5

    how please?
     
Thread Status:
Not open for further replies.

Share This Page