Solved Will a JSON file reset when the plugin is disaled and re-enabled?

Discussion in 'Plugin Development' started by robertlit, Jul 27, 2019.

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

    robertlit

    I have a few questions about JSON files..
    First, if I create a JSON file in a Java class (I am not physically creating it I am telling the program to create jt) will the file be inside the JAR file or outside of it?
    If it is inside the JAR file will it reset (get cleared) everytime the plugin is disabled and re-enabled?

    Thanks.
     
    Last edited: Jul 27, 2019
  2. Offline

    timtower Administrator Administrator Moderator

  3. Offline

    robertlit

    @timtower Thanks. Will it be possible to change the JSON file after it was created?
    And also how can I read (and also write) values of the file outside the JAR, and how can I check whether or not the file already exists?
     
  4. Offline

    timtower Administrator Administrator Moderator

    @robertlit Why do you want to use json?
    Yml is built into Bukkit already.
     
  5. Offline

    robertlit

    The only reason I want to use it is because I know how it works, and it's simple. In my Skyblock plugin I need to save the players who have an island and the location of their island, will it possible to do it with yml? If so how can I do it?
     
  6. Offline

    timtower Administrator Administrator Moderator

    @robertlit If you know how it works then you can use the exact same methods for Bukkit.
     
Thread Status:
Not open for further replies.

Share This Page