Revamp getCharacterObject to be more extensible via plugins

just another thing that could be replaced with a map to be more plugin friendly 
You need to check for the error case where there's no team map or no class object and return -1.