Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String filename = "arenas";
- String pl = "ShipWars";
- public static Main plugin;
- public Config testConfig;
- public void onEnable() {
- testConfig = new Config(filename, pl);
- plugin = this;
- GameState.setState(GameState.WAITING);
- regEvents(this);
- testConfig.create();
- testConfig.save();
- getCommand("setlobby").setExecutor(new SetLobby(this));
- }
- -------------------------------------------------OR-------------------------------------------------------
- String filename = "arenas";
- String pl = "ShipWars";
- Config testConfig;
- public static Main plugin;
- public void onEnable() {
- testConfig = new Config(filename, pl);
- plugin = this;
- GameState.setState(GameState.WAITING);
- regEvents(this);
- testConfig.create();
- testConfig.save();
- getCommand("setlobby").setExecutor(new SetLobby(this));
- }
- public Config getTestConfig(){
- return testConfig;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement