plugins: return enum instead of int
plugins: fix typo in variable name
plugins: refactor drilling machine plugin