Solved !!org.bukkit.Material 'DROPPER'

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

  1. Offline


    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


    @AntonioC94 Just save Material#name() to the config and use Material#valueOf(String) to get the material from the config.

Share This Page