Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def player_joined(self):
"""Called when the player joins the game"""
Protocol.player_joined(self)
self.logger.info("%s has joined." % self.display_name)
self.switch_protocol_mode("play")
def player_joined(self):
"""
Called when we join the game. If the server is in online mode, this
means the server accepted our session.
"""
Protocol.player_joined(self)
self.logger.info("Joined the game.")