diff --git a/treepuncher/treepuncher.py b/treepuncher/treepuncher.py index 188ba69..b2401c4 100644 --- a/treepuncher/treepuncher.py +++ b/treepuncher/treepuncher.py @@ -93,7 +93,7 @@ class Treepuncher(MinecraftClient): @property def name(self) -> str: if self.online_mode and self.token: - return self.token.profile.name + return self.token.selectedProfile.name if not self.online_mode and self.username: return self.username raise ValueError("No token or username given")