Development Assistance Material Data

Discussion in 'Plugin Help/Development/Requests' started by TheDiamond06, Jun 1, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    TheDiamond06

    In a configuration file I have a list of blocks for the material. This list loops and runs fine getting the material, but for blocks like granite having the id being stone:1 it is not the in the bukkit API. How can I add material data to a list in config:

    Code:
    sellalla:
      cobblestone: 1
      granite: 1
    :
    Code:
    for(String key : plugin.getConfig().getConfigurationSection("sellall" + ranks).getKeys(false))
                                    {
                                       Material material = Material.valueOf(key.toUpperCase());
                                    }
    
    There is more code, but I do not want to show.
     
  2. Online

    timtower Administrator Administrator Moderator

    Moved to Bukkit alternatives.
     
Thread Status:
Not open for further replies.

Share This Page