Example #1
0
def oxide_reload_plugin(server_info, plugin_name):
    command = 'oxide.reload {}'.format(plugin_name)
    response = connect_rust_rcon(server_info, command)
    return response
Example #2
0
def oxide_reload_all_plugins(server_info):
    command = 'oxide.reload *'
    response = connect_rust_rcon(server_info, command)
    return response
Example #3
0
def stop_server(server_info):
    command = 'server.stop'
    response = connect_rust_rcon(server_info, command)
    return response
Example #4
0
def oxide_remove_user_group(server_info, steam_id, group):
    command = 'oxide.usergroup remove {} {}'.format(steam_id, group)
    response = connect_rust_rcon(server_info, command)
    return response
Example #5
0
def find_command(server_info, search_command):
    command = 'find {}'.format(search_command)
    response = connect_rust_rcon(server_info, command)
    return response
Example #6
0
def get_server_info(server_info):
    command = 'global.serverinfo'
    response = connect_rust_rcon(server_info, command)
    return response
Example #7
0
def set_hostname(server_info, hostname):
    command = 'server.hostname "{}"'.format(hostname)
    response = connect_rust_rcon(server_info, command)
    return response
Example #8
0
def oxide_revoke_group_perm(server_info, steam_id, permission):
    command = 'oxide.revoke group {} {}'.format(steam_id, permission)
    response = connect_rust_rcon(server_info, command)
    return response
Example #9
0
def banid_player(server_info, steam_id, username, reason, duration):
    command = 'global.banid {} {} {} {}'.format(steam_id, username, reason, duration)
    response = connect_rust_rcon(server_info, command)
    return response
Example #10
0
def send_chat_message(server_info, chat_message):
    command = 'global.say {}'.format(chat_message)
    response = connect_rust_rcon(server_info, command)
    return response
Example #11
0
def kick_player(server_info, steam_id):
    command = 'global.kick {}'.format(steam_id)
    response = connect_rust_rcon(server_info, command)
    return response
Example #12
0
def custom_command(server_info, command):
    command = '{}'.format(command)
    response = connect_rust_rcon(server_info, command)
    return response
Example #13
0
def set_max_players(server_info, max_players):
    command = 'server.maxplayers "{}"'.format(max_players)
    response = connect_rust_rcon(server_info, command)
    return response
Example #14
0
def oxide_grant_user_perm(server_info, steam_id, permission):
    command = 'oxide.grant user {} {}'.format(steam_id, permission)
    response = connect_rust_rcon(server_info, command)
    return response
Example #15
0
def oxide_get_user_info(server_info, user):
    command = 'oxide.show user {}'.format(user)
    response = connect_rust_rcon(server_info, command)
    return response
Example #16
0
def oxide_plugin_list(server_info):
    command = 'oxide.version'
    response = connect_rust_rcon(server_info, command)
    return response
Example #17
0
def oxide_get_group_info(server_info, group):
    command = 'oxide.show group {}'.format(group)
    response = connect_rust_rcon(server_info, command)
    return response
Example #18
0
def banlist(server_info):
    command = 'global.banlist'
    response = connect_rust_rcon(server_info, command)
    return response
Example #19
0
def oxide_create_group(server_info, group):
    command = 'oxide.group add {}'.format(group)
    response = connect_rust_rcon(server_info, command)
    return response
Example #20
0
def users_sleeping(server_info):
    command = 'global.sleepingusers'
    response = connect_rust_rcon(server_info, command)
    return response
Example #21
0
def oxide_remove_group(server_info, group):
    command = 'oxide.group remove {}'.format(group)
    response = connect_rust_rcon(server_info, command)
    return response
Example #22
0
def get_players_list(server_info):
    command = 'playerlist'
    response = connect_rust_rcon(server_info, command)
    return response
Example #23
0
def set_description(server_info, description):
    command = 'server.description "{}"'.format(description)
    response = connect_rust_rcon(server_info, command)
    return response