#saveResource
1 messages · Page 1 of 1 (latest)
using intelliJ
public class Main extends JavaPlugin {
private final FileConfiguration configFile = this.getConfig();
private final YamlConfiguration config = (YamlConfiguration) configFile;
saveResource("config.yml", false);
}
and your IDE says that saveResource isn't a method?
not directly but everything points to it not recognising it as a method
what does your IDE say?
Missing method body, or declare abstract is one of them
could you send a screenshot of you hovering over the error?
dang it. im not verified
imgur it
THATS WHAT I"VE BEEN MISSING
public void onEnable() {
saveResource("config.yml", true);
}
i knen that
👍
lol thx