Minor changes, bugfix

Changed runas(~op to sudo( as apparently runas(~op is depreciated, fixed
bug where player could be demoted below visitor, having no rank at all.