Solved User friendly item config

Discussion in 'Plugin Development' started by falcon2_0, Jul 22, 2014.

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

    falcon2_0

    Is there a method that will convert a string into a material? Example: "stone" converts to Material.STONE.
     
  2. Offline

    Gnat008

    falcon2_0
    I believe you want Material.valueOf(String type).
     
  3. Offline

    thecrystalflame

    off the top of my head i believe this will work:
    Code:java
    1.  
    2. Material.valueOf("stone".toUpperCase(Locale.ENGLISH));
    3.  
     
  4. Offline

    falcon2_0

    Gnat008 likes this.
Thread Status:
Not open for further replies.

Share This Page