Fixed /prmdefine, optimized some code

You no longer need to restart the server for mines to take affect and
optimized some code.