Player gamemode change by hitting with stick

Hi. Is there any plugin, which can change hitted player gamemode (when he hitted with specific item)?
If no, can somebody do something like this, please?
thanks for answers(to future:D)

Eufranio / CommandItems might help, although I haven’t used it myself.