Player data not saving?

Discussion in 'Development' started by iCirgio, May 31, 2019.

  1. iCirgio

    iCirgio Slime

    Messages:
    82
    GitHub:
    lolnova
    Yeah.. so I'm using custom player data and have my data of players linked to a json file inside plugindata\core\players folder....

    For some reason when I have core activated new players .dat data isn't being saved / process. Do you have any ideas why it is doing this?
     
  2. Eren5960

    Eren5960 Spider Jockey

    Messages:
    25
    GitHub:
    Eren5960
    PlayerQuitEvent does not work when the server is shutting down. Try recording all players on the onDisable() function or create a special function for it
     
  3. iCirgio

    iCirgio Slime

    Messages:
    82
    GitHub:
    lolnova
    Example of what's happening is in picture. The player file isnt saving
     

    Attached Files:

  4. Eren5960

    Eren5960 Spider Jockey

    Messages:
    25
    GitHub:
    Eren5960
    Code:
    player:
      #Choose whether to enable player data saving.
      save-player-data: true
    Set true
     
  5. iCirgio

    iCirgio Slime

    Messages:
    82
    GitHub:
    lolnova
    Not that also already solved accidentally overrode save() I player file
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.