Solved !!org.bukkit.Material 'DROPPER'

Discussion in 'Plugin Development' started by AntonioC94, Dec 7, 2019.

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

    AntonioC94

    Hi! so i want to know how can i get just the type of an item to put in my config. Currently i have on my config with my code "!!org.bukkit.Material 'DROPPER'".

    Solution: use Material#getKey() calling like an String

    P.D: working on 1.14.4
     
    Last edited: Dec 7, 2019
  2. Offline

    KarimAKL

    @AntonioC94 Just save Material#name() to the config and use Material#valueOf(String) to get the material from the config.
     
Thread Status:
Not open for further replies.

Share This Page