Scoreboards:
most scoreboard plugins such as featherboard use variable %thirst% for getting the players thirst level.
Plugin links
If you are designing a plugin and want to interface with thirst use the following :
getThirst(Player player)
and
setThirst(Player player, Int thirst)