How do I set it up so the config can recognise the sound? This doesn't work and is my code, what do I need to do? Code:java i.getLocation().getWorld().playSound(getConfig().getString("Sound"); The 'playSound' says it's not applicable for arguments. I don't really know much about Java fully, I've just looked here and there and know simple stuff so do little things but never configuration. It's weird, I know I know but pls help
Drizzy The constructor takes a Location, Sound, float, and another float for the volume and pitch. Not just a Sound.
Could make a string then: i.getLocation().getWorld().playSound(i.getLocation(), Sound.valueOf(String), (Floats)
17xDillz1997 Skionz bwfcwalshy Also, how do I reload config. I did this but the reload doesn't work. No errors, but the settings don't actually reset: Code:java public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args){ if(cmd.getName().equalsIgnoreCase("LReload")) { reloadConfig(); sender.sendMessage(Prefix + "Configuration reloaded"); return true; } return false; }