However, withdrawal from caffeine is seldom dangerous, though it can make one uncomfortable for a few days. The most frequent symptom associated with this withdrawal is a moderate to severe headache. This can occur between 12 and 24 hours after last intake of caffeine.
Make sure you have cheats ON and say /give (player name) command_block. After you get in in your inventory place 5 in a row. Then you right click the first one and put the command /give @a 306. Then exit out of that command block and right click the next one.
Also worth learning is that the code you write in the command console (when you press the t key), is the same code that is used by a command block. So you can right click a command block and type: /give @p diamond 64. Then, add any random block directly next to the command block and add a button.