Package org.mcsg.survivalgames.util

Examples of org.mcsg.survivalgames.util.Kit



  public void LoadKits(){
    Set<String> kits1 = SettingsManager.getInstance().getKits().getConfigurationSection("kits").getKeys(false);
    for(String s:kits1){
      kits.add(new Kit(s));
    }
  }
View Full Code Here


  @SuppressWarnings("deprecation")
  public void selectKit(Player p, int i) {
    p.getInventory().clear();
    ArrayList<Kit>kits = getKits(p);
    if(i <= kits.size()){
      Kit k = getKits(p).get(i);
      if(k!=null){
        p.getInventory().setContents(k.getContents().toArray(new ItemStack[0]));
      }
    }
    p.updateInventory();

  }
View Full Code Here

TOP

Related Classes of org.mcsg.survivalgames.util.Kit

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.