Code: public void setFinalFine(int amount, Player p) { fine.put(p.getUniqueId(), amount); plugin.getConfig().set("Fines." + p.getUniqueId().toString(), fine.get(p.getUniqueId())); plugin.saveConfig(); } 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.