Skip to content

Instantly share code, notes, and snippets.

@mattmess1221
Created September 16, 2014 18:23
Show Gist options
  • Save mattmess1221/d9dc13866a326b24f7e5 to your computer and use it in GitHub Desktop.
Save mattmess1221/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