I'm trying to let a listener take a value from a config file, an integer, then change it to the corresponding material name that Bukkit will recognize and put it into my code. I've tried everything I can think of, which is probably very little, so I need some help here, if you all don't mind. The thing I need to put the material in is this: PHP: event.getPlayer().getItemInHand().getType() == Material.<Material type to insert> It's for a right-click event that detects what the player is holding in his/her hand. It won't let me put a string in for the material type, and anything else I try doesn't seem to work. If it's too hard to convert an ID into a material, I'll settle with just inputting the material into the config, but I can't even figure out how to do that. I've never used configs before, so I know I'm probably making a stupid error somewhere. Can anyone spare a moment to give me a few pointers here?