Saving Block Data

Discussion in 'Plugin Development' started by PorkSkullsDev, Jan 16, 2021.

  1. Offline

    PorkSkullsDev

    Hello Bukkit Forum Users,

    Today I was making a plugin, and I was trying to figure out how I could get how many blocks a player mined, and once they hit this amount; run a certain piece of code.

    I was able to figure out how to do it, but all my data reset when the server restarted. How would I save Block Data via UUID without using YAML?

    Kind Regards, PorkSkulls.
     
  2. Offline

    timtower Administrator Administrator Moderator

  3. Offline

    marcelo.mb

    @PorkSkullsDev If you want to save the int you set if a player breaks a block the only way is to save it in an external file or an external database. So, to save the data within a YAML file format is one of the best ways you can do this. But sure you can use every file format which is supported by java if you want to use other ways or use an external database.
     

Share This Page