CharacterBox: Evaluating the Role-Playing Capabilities of LLMs in Text-Based Virtual Worlds