After trying to make separate configs I made this in my main class to create custom configs: Code:java package us.legioncraft.tokens; import java.io.File;import java.io.IOException;import java.io.InputStreamReader;import java.io.Reader;import java.io.UnsupportedEncodingException;import java.util.UUID;import java.util.logging.Level; import org.bukkit.configuration.file.FileConfiguration;import org.bukkit.configuration.file.YamlConfiguration;import org.bukkit.plugin.java.JavaPlugin; /** * * @author TheMindWreck * @version 1.0 * */ public class TokensAPI extends JavaPlugin{private FileConfiguration customConfig = null;private File customConfigFile = null; /*** Standard plugin startup method* Loads config. Do not touch. Do it in your own code by using the plugin variable.*/public void onEnable(){new Token(this);new TokenPlayer(this);} public void reloadCustomConfig(UUID uuid) { if (customConfigFile == null) { customConfigFile = new File(getDataFolder(), uuid.toString() + ".yml"); } customConfig = YamlConfiguration.loadConfiguration(customConfigFile); // Look for defaults in the jar Reader defConfigStream;try {defConfigStream = new InputStreamReader(this.getResource(uuid.toString() + ".yml"), "UTF8");if (defConfigStream != null) { YamlConfiguration defConfig = YamlConfiguration.loadConfiguration(defConfigStream); customConfig.setDefaults(defConfig); }} catch (UnsupportedEncodingException e) {e.printStackTrace();}} public FileConfiguration getCustomConfig(UUID uuid) { if (customConfig == null) { reloadCustomConfig(uuid); } return customConfig;} public void saveCustomConfig(UUID uuid) { if (customConfig == null || customConfigFile == null) { return; } try { getCustomConfig(uuid).save(customConfigFile); } catch (IOException ex) { getLogger().log(Level.SEVERE, "Could not save config to " + customConfigFile, ex); }} public void saveDefaultConfig(UUID uuid) { if (customConfigFile == null) { customConfigFile = new File(getDataFolder(), uuid.toString() + ".yml"); } if (!customConfigFile.exists()) { saveResource(uuid.toString() + ".yml", false); }} } But there is something with line 44 or the line: Code:java defConfigStream = new InputStreamReader(this.getResource(uuid.toString() + ".yml"), "UTF8"); The error in the plugin was this : http://pastebin.com/RPKS9Lwf If anyone can help me that would be great that would be fantastic. Thanks in advanced, Baugh70
Locked. These forums only support CraftBukkit servers. For help with other software such as Spigot, please contact the makers of that software.