MCPcopy Create free account
hub / github.com/Teneted/Tenet / reloadConfig

Method reloadConfig

src/main/java/org/bukkit/plugin/java/JavaPlugin.java:155–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

153 }
154
155 @Override
156 public void reloadConfig() {
157 newConfig = YamlConfiguration.loadConfiguration(configFile);
158
159 final InputStream defConfigStream = getResource("config.yml");
160 if (defConfigStream == null) {
161 return;
162 }
163
164 newConfig.setDefaults(YamlConfiguration.loadConfiguration(new InputStreamReader(defConfigStream, Charsets.UTF_8)));
165 }
166
167 @Override
168 public void saveConfig() {

Callers 1

getConfigMethod · 0.95

Calls 3

loadConfigurationMethod · 0.95
getResourceMethod · 0.95
setDefaultsMethod · 0.65

Tested by

no test coverage detected