Example #1
0
    def sendServerMessage(self, message):
        '''
        Sends a chat message from the server to all players.

        @param message: The message you want everyone to see.
        '''
        self.getGame().sendServerCommand(ChatMsg(OPEN_CHAT, text=message))
Example #2
0
 def sendPublicChat(self, player, text):
     self.sendRequest(ChatMsg(OPEN_CHAT, text=text.encode()))
Example #3
0
 def sendTeamChat(self, player, text):
     self.sendRequest(ChatMsg(TEAM_CHAT, player.teamId, text=text.encode()))
Example #4
0
 def sendPrivateChat(self, player, targetId, text):
     self.sendRequest(ChatMsg(PRIVATE_CHAT, targetId, text=text.encode()))
Example #5
0
 def sendPrivateChat(self, fromPlayer, toPlayer, text):
     fromPlayer.agent.sendRequest(
         ChatMsg(PRIVATE_CHAT, toPlayer.id, text=text.encode()))