Shine Admin + Badges

SjNSjN Join Date: 2003-01-07 Member: 11983Members, Reinforced - Supporter
Can someone walk me through how to get Shine Admin to work with badges?

With DAK, all I had to do before is modify ServerAdmin.json and add a certain badge group the the user, such as this:

"PlayerName": {
"id": 59212,
"groups": [ "SuperAdmin", "heart" ]
}

Shine user config looks like this:

"142588": {
"Group": "SuperAdmin",
"Immunity": 2
},

Group is singular, meaning I cannot put an array in there. So how do I assign a certain badge to a user?

Thanks

Comments

  • Person8880Person8880 Join Date: 2013-01-02 Member: 177167Members, Squad Five Blue
    Add a "Badge" entry to the group, so for example:

    "SuperAdmin": {
    "Commands": [],
    "IsBlacklist": true,
    "Immunity": 100,
    "Badge": "heart"
    }
  • SjNSjN Join Date: 2003-01-07 Member: 11983Members, Reinforced - Supporter
    edited September 2013
    Person8880 wrote: »
    Add a "Badge" entry to the group, so for example:

    "SuperAdmin": {
    "Commands": [],
    "IsBlacklist": true,
    "Immunity": 100,
    "Badge": "heart"
    }

    Thank You!

    But what if I didn't want all SuperAdmins to have the same badge?

    Player1
    Group: "Admin"
    Badge: "heart"

    is something similar to this possible?

    Right now I am in the process converting a web users URL previously used for DAK, which looks like this:
    dakattack
    104714976
    simple_reserved

    llama_eater
    111401
    simple_reserved\,ghost

    darkbanefox
    35648280
    simple_reserved

    TechnIckS
    5922566
    full_admin\,uwe

    MuchHigher
    137719
    basic_admin\,clover

    triace
    29939380
    basic_admin

    For example, the player before last(MuchHigher) is "basic_admin" and he has the "clover" badge.
  • Person8880Person8880 Join Date: 2013-01-02 Member: 177167Members, Squad Five Blue
    Right now, you'd have to create a group for each badge, as the user data wasn't designed with badges in mind.

    I can add reading a badge value from the user entry to it so you can put:

    "142588": {
    "Group": "SuperAdmin",
    "Immunity": 2,
    "Badge": "heart"
    },
  • DirtyCurtyDirtyCurty Join Date: 2013-09-01 Member: 187591Members, Reinforced - Shadow
    This probably doesn't belong here, but what is Shine Admin? I see it on a few servers and I was just a little curious.
  • SjNSjN Join Date: 2003-01-07 Member: 11983Members, Reinforced - Supporter
    Person8880 wrote: »
    Right now, you'd have to create a group for each badge, as the user data wasn't designed with badges in mind.

    I can add reading a badge value from the user entry to it so you can put:

    "142588": {
    "Group": "SuperAdmin",
    "Immunity": 2,
    "Badge": "heart"
    },


    That would be great. Would it work now or is it going to come out in the new version?

    @DirtyCurty

    https://github.com/Person8880/Shine
    Shine
    =====

    An administration mod for Natural Selection 2.

    Currently a work in progress.

    The design goals are:
    - Be easy to extend and maintain.
    - Be easy for admins to use.
    - Be completely modular, everything is optional.
  • Person8880Person8880 Join Date: 2013-01-02 Member: 177167Members, Squad Five Blue
    Next update I push out it will work.
  • SjNSjN Join Date: 2003-01-07 Member: 11983Members, Reinforced - Supporter
    Person8880 wrote: »
    Next update I push out it will work.

    That's great! Thank you!!
  • SjNSjN Join Date: 2003-01-07 Member: 11983Members, Reinforced - Supporter
    How will I know if the new update is out? (Since it's auto updates right?)
  • MavickMavick Join Date: 2012-11-07 Member: 168138Members
    DirtyCurty wrote: »
    This probably doesn't belong here, but what is Shine Admin? I see it on a few servers and I was just a little curious.

    Shine is a server administration mod that automates alot of server settings and does actually quite a wide range of stuff for server admins. It's pretty much a must-have mod imo. It includes stuff like a random vote based on previous rounds KDA's, score, etc. Person8880 that you see posting here is the person who wrote the mod, and he has done a fantastic job with it.
Sign In or Register to comment.