Marin's Script HM_Items that I have updated to v.18.1, of course, does not work on the latest version of Essentials, because I intentionally fixed that for v.18.1, I didn't think of updating it for v.19, because I don't use it myself.
But I'm happy you want to fix Marin's code for 19.1, so...