Ejemplo n.º 1
0
def broadcast_notice(server: ServerInterface):
    player_list = server.get_plugin_instance(
        'online_player_api').get_player_list()
    output_notice = get_output_rtext()
    for player in player_list:
        server.tell(player, output_notice)
        server.logger.info('Send notice to {} successfully.'.format(player))
Ejemplo n.º 2
0
def on_player_joined(server: ServerInterface, player: str, info: Info):
    if config['AutoSend'] == True:
        server.tell(player, get_output_rtext())