public ItemStack getEmpireWand() {
ItemStack empirewand = new ItemStack(Material.BLAZE_ROD, 1);
ItemMeta meta = empirewand.getItemMeta();
meta.setDisplayName(ChatColor.RED + "Empire Wand");
ArrayList<String> lore = new ArrayList<String>();
try {
lore.add(ChatColor.translateAlternateColorCodes('&', new Randomizer<String>(KingdomFactionsPlugin.getInstance()
.getDataManager().getArrayData("Empirewand.lores").getValue()).result()));
} catch (DataException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
meta.setLore(lore);
meta.addEnchant(Enchantment.LURE, 1, true);
meta.addItemFlags(ItemFlag.HIDE_ENCHANTS);
empirewand.setItemMeta(meta);
return empirewand;
}
EmpireWandModule.java 文件源码
java
阅读 24
收藏 0
点赞 0
评论 0
项目:KingdomFactions
作者:
评论列表
文章目录