Advertisement
Guest User

Untitled

a guest
Aug 1st, 2017
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. public class Configuration {
  2.  
  3. public static void syncConfig() {
  4. ConfigPreInit.sapphireArmor = EnumHelper.addArmorMaterial("sapphire_armor", "SlurpiesDongles:sapphire",
  5. SlurpiesDongles.Config.get("SlurpiesDongles.sapphire_armor", "Durability", 5).getInt(),
  6. new int[]{SlurpiesDongles.Config.get("SlurpiesDongles.sapphire_armor", "Head", 1).getInt(),
  7. SlurpiesDongles.Config.get("SlurpiesDongles.sapphire_armor", "Chest", 2).getInt(),
  8. SlurpiesDongles.Config.get("SlurpiesDongles.sapphire_armor", "Legs", 3).getInt(),
  9. SlurpiesDongles.Config.get("SlurpiesDongles.sapphire_armor", "Feet", 1).getInt()},
  10. SlurpiesDongles.Config.get("SlurpiesDongles.sapphire_armor", "Enchantability", 12).getInt(),
  11. SoundEvents.ITEM_ARMOR_EQUIP_DIAMOND,
  12. (float) SlurpiesDongles.Config.get("SlurpiesDongles.sapphire_armor", "Toughness", 0.0D).getDouble(0.0D));
  13.  
  14. if (SlurpiesDongles.Config.hasChanged()) {
  15. SlurpiesDongles.Config.save();
  16. }
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement