Created
September 16, 2014 18:23
-
-
Save mattmess1221/d9dc13866a326b24f7e5 to your computer and use it in GitHub Desktop.
Server config class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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