def reply(self, message: Any, *, console_text: Optional[Any] = None, **kwargs): """ :keyword console_text: If it's specified, use it instead of param message """ if console_text is not None: message = console_text misc_util.print_text_to_console(self._mcdr_server.logger, message)
def broadcast(self, text, *, encoding=None): """ Broadcast the message in game and console :param text: the message you want to send :param str encoding: The encoding method for the text :type text: str or dict or list or RTextBase :rtype: None """ self.say(text, encoding=encoding, is_plugin_call=False) misc_util.print_text_to_console(self.logger, text)
def broadcast(self, text: MessageText, *, encoding: Optional[str] = None) -> None: """ Broadcast the message in game and to the console :param text: the message you want to send :param encoding: The encoding method for the text """ self.say(text, encoding=encoding) misc_util.print_text_to_console(self.logger, text)
def broadcast(self, text: Union[str, RTextBase], *, encoding: Optional[str] = None) -> None: """ Broadcast the message in game and to the console :param text: the message you want to send :param encoding: The encoding method for the text """ self.say(text, encoding=encoding, is_plugin_call=False) misc_util.print_text_to_console(self.logger, text)
def reply(self, info, text, *, encoding=None, console_text=None): """ Reply to the source of the Info If the Info is from a player then use tell to reply the player Otherwise use logger.info to output to the console :param Info info: the Info you want to reply to :param text: the message you want to send :param console_text: If it's specified, console_text will be used instead of text when replying to console :param str encoding: The encoding method for the text :type text: str or dict or list or RTextBase :rtype: None """ if info.is_player: self.tell(info.player, text, encoding=encoding, is_plugin_call=False) else: if console_text is not None: text = console_text misc_util.print_text_to_console(self.logger, text)
def reply(self, message: Any, **kwargs) -> None: misc_util.print_text_to_console(self.__logger, message)
def reply(self, message: Any, **kwargs): misc_util.print_text_to_console(self._mcdr_server.logger, message)