How to make "ALL_ITEMS" apply to all items in a config

Discussion in 'Spigot Plugin Development' started by PCPSells, Jun 16, 2018.

  1. Hey Spigot! Quick question:
    How would I make it so if a player was to put "ALL_ITEMS" or something like that in a config for an array of items, to make it actually apply to all items in game?
    Thank you in advance! <3
  2. Check if the value in your config equals/contains ALL_ITEMS, if so, loop through all materials and do what you want (or however you end up doing it).
  3. Is there a list for all items that I could make it loop through? Mostly what I was looking for. I can easily do the check for "ALL_ITEMS" being in the list, just need to know how to properly loop it through all the items. <3
  4. Gotcha. You should be able to get all material types with Material.values()