Updated the check for player permissions, hopefully it doesn't error out
anymore.