I'm making a /sethome and /home but I came to a problem, whenever I sethome it sets and saves but I cant /home unless I /reload, how can I fix this?
Give us some code, an error, something! We can't help you if we don't know what piece of code is causing what problem!
First off, I think this: Code:java public File file = new File("plugins/HauntedTeams", "homes.yml"); Should be: Code:java public File file = new File("plugins" + File.separator + "HauntedTeams" + File.separator + "homes.yml"); Then the rest of the code looks fine. Can we see the /home command code?
There are no errors with this.plugin.reloadConfig(); but I didn't seem to do anything I still have to manually /reload to go to the home
Code: this.getConfig().options().copyDefaults(true); this.saveConfig(); Try this, what I use for my /sethome