Solved How to access another plugin's data folder?

Discussion in 'Spigot Plugin Development' started by rightfootmessi, Jan 22, 2018.

Thread Status:
Not open for further replies.
  1. You should be able to access the files from another plugin, what error are you getting ?
     
  2. Here's the stack trace

    https://pastebin.com/ef1EaQS5
     
  3. Seems like there was an error while deserializing the config, can you paste the content of the config ?
     
  4. The problem is: Caused by: org.yaml.snakeyaml.error.YAMLException: Could not deserialize object

    The data in the YAML file cannot be deserialized back into an object. However, it does look like the file is being accessed correctly in this case.
     
  5. Turns out I forgot to add this line: ConfigurationSerialization.registerClass(Mine.class);

    That, among a few other changes, solved everything.
     
    • Like Like x 1
Thread Status:
Not open for further replies.