Solved Config

Discussion in 'Plugin Development' started by AlbkadDev, Jan 4, 2018.

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


        public void setFinalFine(int amount, Player p) {
            fine.put(p.getUniqueId(), amount);
            plugin.getConfig().set("Fines." + p.getUniqueId().toString(), fine.get(p.getUniqueId()));
    So I am wondering why this gives me a error. It gives me a nullpointererror. I am most likely forgetting something because it was a while ago I coded last. I do not have the player added when I do the command.
  2. Offline


    Either 'fine' is null or 'plugin' is null.
    Post the constructor of the class that this code is from.
Thread Status:
Not open for further replies.

Share This Page