• Search
  • Register
  • Log in
  • Ace of Spades Game Forums » Gameplay
  • Note: This forum is merely an archive. It is no longer possible to login or register. - StackOverflow
    New Ace of Spades Forums: http://buildandshoot.com/
  • @mat^2 (Probably have heard this a lot)
  •  

    You should add user ranks to pyspades. Not just admin.

    Like Owner, admin and moderator.

    Before people come on here and be like "this has been brought up before". Read the title.

    #104180
    KomradeMario
    8-bit
    Posted 14 years ago
     

    you can already do it by editing commands.py and config.txt

    example:

    commands.py

    rights = {
    'builder' : ['god', 'goto'],
    'moderator' : ['kick', 'mute']
    }

    config.txt

    "passwords" : {
    "admin" : ["adminpass1","adminpass2"],
    "builder" : ["buildpass1","buildpass2"],
    "moderator" : ["modpass1","modpass2"],
    "trusted" : ["trustedpass1","trustedpass2"]
    },

    this would allow anyone who uses /login modpass1 or /login modpass2 to only kick and mute. their powers can be changed by adding/removing commands to moderator in commands.py

    existing commands are:

    command_list = [
    help,
    pm,
    login,
    kick,
    votekick,
    vote_yes,
    cancel_vote,
    intel,
    ip,
    fog,
    ban,
    banip,
    unban,
    undo_ban,
    mute,
    unmute,
    deaf,
    global_chat,
    say,
    kill,
    heal,
    lock,
    unlock,
    switch,
    set_balance,
    rules,
    toggle_build,
    toggle_kill,
    toggle_teamkill,
    teleport,
    tp,
    tpsilent,
    go_to,
    move,
    where,
    god,
    god_build,
    fly,
    invisible,
    streak,
    reset_game,
    toggle_master,
    change_map,
    server_name,
    ping,
    weapon
    ]

    #104198
    izzy
    Moderator
    Posted 14 years ago
     

    Oh, cool. I don't know much python but that looks very straight forward. Thanks lol :P

    #104203
    KomradeMario
    8-bit
    Posted 14 years ago
     

    Yeah, the SuperCool Build Server has ranks: Advanced Builder (which is like Moderator) and Admin. You can enable which commands the rank has, and more.

    #104206
    YourMom
    *BANNED*Gregarious
    Posted 14 years ago
     

    I've look though the commands source before and I never knew what the
    rights = {
    'builder' : ['god', 'goto'],

    was for, but now I do

    #104209
    KomradeMario
    8-bit
    Posted 14 years ago
     

    When I try to do command I have set for moderator, it says "No administrator rights". Any ideas?

    #105123
    KomradeMario
    8-bit
    Posted 14 years ago
     

    get administrators rights?

    #105128
    ninjapro69
    true ninja
    Posted 14 years ago
     

    I have admin rights. Maybe if you read the thread, you would understand.

    #105135
    KomradeMario
    8-bit
    Posted 14 years ago
    RSS feed for this topic  

    Reply

    You must log in to post.

  • Tags
  •   No tags yet.
     
    Ace of Spades Game Forums is proudly powered by bbPress.   //   Theme by Mike Lothar  
    [ Time : 0.289s | 13 Queries ]