The plugin would be trivial to write if the player was in Survival mode. It'd only be a problem in Adventure mode.
I think that the primary problem with this plugin is that the client does not know how to mine blocks if it is in Adventure Mode. The fix is to...
Separate names with a comma.