>FromYourCode();

Source code quote in Java293

 28 June, 2016 at 01:30
 if(plugin.getConfig().getBoolean("Enchant.log")){
          String time = String.format("[%tm/%td/%ty - %tH:%tM:%tS] ", new Date(), new Date(),new Date(),new Date(),new Date(),new Date());
          plugin.logToFile("[ENCHANT + Time" + " (" + time + " )" + event.getEnchanter() + "enchanted their " + event.getItem().getType().name().replace("DIAMOND_SWORD", "Diamond Sword").replace("DIAMOND_AXE", "Diamond Axe").replace("DIAMOND_PICKAXE", "Diamond Pickaxe").replace("DIAMOND_SPADE", "Diamond Spade").replace("DIAMOND_HELMET", "Diamond Helmet").replace("DIAMOND_CHESTPLATE", "Diamond Chestplate").replace("DIAMOND_LEGGINGS", "Diamond Leggings").replace("DIAMOND_BOOTS", "Diamond Boots").replace("IRON_SWORD", "Iron Sword").replace("IRON_AXE", "Iron Axe").replace("IRON_PICKAXE", "Iron Pickaxe").replace("IRON_SPADE", "Iron Spade").replace("IRON_HELMET",  "Iron Helmet").replaceAll("IRON_CHESTPLATE", "Iron Chestplate").replace("IRON_LEGGINGS", "Iron Leggings").replaceAll("IRON_BOOTS", ChatColor.GRAY+ "Iron Boots").replace("GOLD_SWORD", "Gold Sword").replace("GOLD_AXE", "Gold Axe").replace("GOLD_PICKAXE", "Gold Pickaxe").replace("GOLD_SPADE", "Gold Spade").replace("GOLD_HELMET", "Gold Helmet").replace("GOLD_CHESTPLATE", "Gold Chestplate").replace("GOLD_LEGGINGS", "Gold Leggings").replace("GOLD_BOOTS",  "Gold Boots").replace("CHAINMAIL_HELMET", ChatColor.DARK_PURPLE + "Chainmail Helmet").replace("CHAINMAIL_CHESTPLATE", "Chainmail Chestplate").replace("CHAINMAIL_LEGGINGS", "Chainmail Leggings").replace("CHAINMAIL_BOOTS", "Chainmail Boots").replace("WOODEN_SWORD", "Wooden Sword").replace("WOODEN_AXE",  "Wooden Axe").replace("WOODEN_PICKAXE", "Wooden Pickaxe").replace("WOODEN_SPADE", "Wooden Spade").replace("LEATHER_HELMET",  "Leather Helmet").replace("LEATHER_CHESTPLATE",  "Leather Chestplate").replace("LEATHER_LEGGINGS", "Leather Leggings").replace("LEATHER_BOOTS", "Leather Boots") + "with the following enchantments" + enchant.replace("DAMAGE_ALL", "Sharpness").replace("FIRE_ASPECT", "Fire Asepct").replace("KNOCKBACK", "Knockback").replace("LOOT_BONUS_MOBS",  "Looting").replace("DAMAGE_ARTHROPODS", "Bane of Arthropod").replace("DAMAGE_UNDEAD", "Smite").replace("SILK_TOUCH", "Silk Touch").replace("DIG_SPEED", "Efficiency").replace("DURABILITY","Unbreaking").replace("LOOT_BONUS_BLOCKS", "Fortune").replace("ARROW_DAMAGE", "Power").replace("ARROW_KNOCKBACK", "Punch").replace("ARROW_FIRE", "Flame").replace("ARROW_INFINITE", "Infinity").replace("PROTECTION_ENVIRONMENTAL", "Protection").replace("PROTECTION_FIRE", "Fire Protection").replace("PROTECTION_EXPLOSIONS", "Blast Protection").replace("PROTECTION_PROJECTILE", "Projectile Protection").replace("WATER_WORKER", "Respiration").replace("Enchantment.OXYGEN", "Aqua Affinity").replace("PROTECTION_FALL", "Feather Falling") + " which cost:" + event.getExpLevelCost() + "exp!");
        }

Check similar quotes

Share this quote