Skip to content

Instantly share code, notes, and snippets.

@killjoy1221
Created September 16, 2014 18:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save killjoy1221/d9dc13866a326b24f7e5 to your computer and use it in GitHub Desktop.
Save killjoy1221/d9dc13866a326b24f7e5 to your computer and use it in GitHub Desktop.
Server config class
package org.spongepowered.mod.configuration;
import java.io.File;
public class ServerConfig extends PluginConfig {
private static ServerConfig instance;
private ServerConfig() {
super(new File("server.cfg"));
}
public static ServerConfig getConfig(){
if(instance == null)
instance = new ServerConfig();
return instance;
}
@Override
public String getName(){
return "server";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment