Problem with Config File

Discussion in 'Plugin Development' started by Juflos, Oct 17, 2019.

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

    Juflos

    Hey, I'm working on an Essentials plugin right now, but I'm having a bug where I do not know how to fix it.

    Main class: https://hastebin.com/ocozuqidaf.java
    MessageManager class: https://hastebin.com/cemusujuka.js
    Messages class: https://hastebin.com/inisozosup.java

    The messages class looks like this in the code:
    https://ibb.co/dMY3LMs

    if I write the message class in line 19 before the "file" "File" are indeed the errors in the code away, however, then I get the following error in the console:
    https://hastebin.com/uvezewuhem.css

    Can someone help me with that? Because I do not know how to continue ...

    Should anything be needed to write code please. But I believe the most important thing that is needed in it.
     
  2. Offline

    robertlit

    First of all, in Java you should add the type of the variable before its name, so add "File". secondly, in operating systems the paths use "/" and not "//", also for your convinience you could do, plugin.getDataFolder() to get the data folder of your plugin, instead of getting the name from the plugin.yml.
     
Thread Status:
Not open for further replies.

Share This Page