Configuration files doesn't work in Linux (again).

Discussion in 'Plugin Development' started by robin0van0der0v, Jun 9, 2011.

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

    robin0van0der0v

    Hello. :)

    I have a problem with my configuration file. :(
    I can't get the configuration file working in Linux.
    I use my function "public void reload()" for reading the configuration.
    It works good in Windows, but it doesn't work in Linux. :(

    First I create the variables in the beginning of my plugin.
    Code:
    public Boolean signmessage = false;
    public Boolean minecartexit = true;
    public Boolean minecartremove = true;
    public Boolean minecartdrop = true;
    And later I read them with my reload function.
    Code:
    public void reload()
    {
        getConfiguration().load();
        signmessage = getConfiguration().getBoolean("sign.message",false);
        minecartexit = getConfiguration().getBoolean("minecart.exit",true);
        minecartremove = getConfiguration().getBoolean("minecart.remove",true);
        minecartdrop = getConfiguration().getBoolean("minecart.drop",true);
        getConfiguration().save();
    }
    Can anybody tell me what I am doing wrong? :)


    ~ Robin.
     
  2. Offline

    nickguletskii

    getConfiguration().load();
    Code of that please. I suspect incorrect capitalisation or a wrong slash.
     
  3. Offline

    Shamebot

    That should be Bukkit build-in.
     
  4. Offline

    nickguletskii

    Aaah, I see. Then there is a better solution: don't use the bukkit's config.
     
    Shamebot likes this.
  5. Offline

    robin0van0der0v

    What should I use then? :p
     
  6. Offline

    nickguletskii

    A normal file, properties file, yml or json.
     
Thread Status:
Not open for further replies.

Share This Page