[SPIGOT-1217] CopyDefaults / SetDefaults not working as it should. Created: 30/Sep/15  Updated: 03/Oct/15  Resolved: 03/Oct/15

Status: Closed
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: KyleD1986 Assignee: Unassigned
Resolution: Invalid Votes: 0
Labels: 1.8, Craftbukkit, spigot
Environment:

Java 8
Netbeans IDE
Spigot build - 76236cb-62a2169


Plugin: Own plugin

 Description   

Copy defaults not working in conjuction with the setdefaults option and copying missing configuration files across.

CODE:

public void checkIPConfig(){
if (IpConfiguration.exists()){
} else

{ IPConfig.options().copyDefaults(); IPConfig.setDefaults(Config); System.out.print("IP Configuration missing copying defaults"); }

}



 Comments   
Comment by md_5 [ 03/Oct/15 ]

I think you want .copyDefaults(true), you are simply using the getter.

Comment by SpigotMC [ 30/Sep/15 ]

Your build is not the latest and therefore may be the reason you are having this issue. Spigot is 0 version(s) behind. CraftBukkit is 2 version(s) behind. This message was automatically generated and is not guaranteed to be a solution to your issue.

Generated at Tue Apr 22 06:07:36 UTC 2025 using Jira 10.3.5#10030005-sha1:190c783f2bd6c69cd5accdb70f97e48812a78d14.