Java Code Examples for org.bukkit.Material#GLOWSTONE

The following examples show how to use org.bukkit.Material#GLOWSTONE . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ConfigManager.java    From Civs with GNU General Public License v3.0 5 votes vote down vote up
private void getTownRingSettings(FileConfiguration config) {
    townRings = config.getBoolean("town-rings", true);
    try {
        townRingMat = Material.valueOf(config.getString("town-ring-material", "GLOWSTONE"));
    } catch (Exception e) {
        townRingMat = Material.GLOWSTONE;
        Civs.logger.severe("Unable to read town-ring-material");
    }
}
 
Example 2
Source File: PlayerInventoryImpl.java    From Civs with GNU General Public License v3.0 5 votes vote down vote up
@Override
public ItemStack getItemInMainHand() {
    ItemStackImpl itemStack = new ItemStackImpl(Material.GLOWSTONE,1);
    ItemMetaImpl itemMeta = new ItemMetaImpl();
    itemMeta.setDisplayName("Civs Tribe");
    ArrayList<String> lore = new ArrayList<>();
    lore.add(TestUtil.player.getUniqueId().toString());
    lore.add("Civs Tribe");
    itemMeta.setLore(lore);
    itemStack.setItemMeta(itemMeta);
    return itemStack;
}