Advertisement
Guest User

Untitled

a guest
Mar 17th, 2016
22
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     String filename = "arenas";
  2.     String pl = "ShipWars";
  3.  
  4.     public static Main plugin;
  5.     public Config testConfig;
  6.    
  7.     public void onEnable() {
  8.         testConfig = new Config(filename, pl);
  9.         plugin = this;
  10.         GameState.setState(GameState.WAITING);
  11.         regEvents(this);
  12.         testConfig.create();
  13.         testConfig.save();
  14.        
  15.         getCommand("setlobby").setExecutor(new SetLobby(this));
  16.        
  17.     }
  18.  
  19. -------------------------------------------------OR-------------------------------------------------------
  20.     String filename = "arenas";
  21.     String pl = "ShipWars";
  22.     Config testConfig;
  23.  
  24.     public static Main plugin;
  25.      
  26.    
  27.     public void onEnable() {
  28.         testConfig = new Config(filename, pl);
  29.         plugin = this;
  30.         GameState.setState(GameState.WAITING);
  31.         regEvents(this);
  32.         testConfig.create();
  33.         testConfig.save();
  34.        
  35.         getCommand("setlobby").setExecutor(new SetLobby(this));
  36.        
  37.     }
  38.  
  39.     public Config getTestConfig(){
  40.         return testConfig;
  41.     }
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement