Null Pointer Exception

Discussion in 'Plugin Development' started by prinzpommes, Jul 21, 2013.

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

    IcyRelic



    if the config didnt copy from the src you need a method like this

    Code:
        public void loadConfiguration(){
            getConfig().options().copyDefaults(true);
            saveConfig();
       
        }
    and in the onEnable() call the method
     

  2. I already implemented that as a "solution" :D

    but the problem with not reading the config correct still does not work...
     
    ysl3000 likes this.
  3. Original implementation you'll find here https://github.com/ysl3000/Smart-Server-Tool/blob/master/src/com/github/ysl3000/Prefixer/MOTD.java

    I hope it'll be helpful for future implementation.

    This could be helpful, too
    http://gailer-net.de/tutorials/java/index.html
    http://chortle.ccsu.edu/java5/index.html
    Edit: Could also be a message in Confiloader.class .....getString("message.privatejoinmessage");
    should be .....getString("privatejoinmessage");

    EDIT:

    ################################################################# #via this config you can enable "nether"-Features. This is for # #people who like to disable the nether! # #################################################################
    message: PrivateJoinMessage: Hi there! Have a nice stay! online%
    ###
    netherrack: true
    netherbrick: true
    glowstone: true
    soulsand: true
    blazerod: true
    netherstar: true
    netherwartseed: true
     
    prinzpommes likes this.
  4. prinzpommes likes this.
Thread Status:
Not open for further replies.

Share This Page