Player Ranks for Rust

Player ranks and stats database

Total Downloads: 1,711 - First Release: Mar 4, 2017 - Last Update: Oct 21, 2017 at 4:35 AM

5/5, 11 likes
  1. =BBUK= Steenamaroo
    Each player can access a full list of his or her stats.
    Server-wide Top-List per category can be advertised on a timer.
    Separate Top-List per-category is available to players, by chat-command.

    'Admin' commands are by permission - playerranks.allowed

    By default, stats for admins are NOT publicised.

    Public Commands
    /pr tops – Displays a player's top stats for each category, in a private list.
    /pr <category> – Displays server top 5 for that category to the user.*

    Admin Commands

    /pr save
    - Saves the database.
    /pr del <steamID> - Removes all stats for that player.
    /pr wipe – Wipes the database.
    /pr wipecategory <category> - Removes all of a user's stats for that category.*

    Console Commands
    playerranks.save

    * The word category should be replaced with a category name, as written at the bottom of this page.

    Config Options
    Block Events – Enable/disable EventManager activity from contributing to ranks.
    Use Clans – Enable/disable clan-member kills from contributing to ranks.
    Use Friends – Enable/disable friend kills from contributing to ranks.
    Message Colours – Three options available, for title, category, and player/stat name.
    Chat Command Alias - Default is "ranks". Change it to whatever you want.
    GUI Transparency - Set between 0 and 1.
    Close-Button Colour - Understand the format here.
    Allow Public Admin Stats - True/False. Applies only to private and timed top lists.
    Timed Top List Amount- Number of results. Default is 3.
    Private Top List Amount - Number of results. Default is 5.
    Use Intense Options – Enable/disable gathering of information, and displays, relating to:

    StructuresBuilt,
    ItemsDeployed,
    ItemsCrafted,
    EntitiesRepaired
    StructuresDemolished
    Resources Gathered


    Use Random Top Table – Enable/disable public top broadcast rotation.*
    True/False per categoryEnable/disable any and all displays for a given category.
    TimedTopListTimer – Frequency of Public-Top broadcasts, in minutes.
    SaveTimer - default is 15 minutes.

    *Zero ranks are filtered out, and if there are no ranks greater than zero, the category is skipped immediately.

    KeyBind
    Rust recently removed the option for the server to automatically bind keys for the player.
    If you'd like to bind the GUI to key ( j in my example), hit F1 for console and type
    Code (Text):
    bind j ToggleTops
    if you need to remove the bind, type
    Code (Text):
    bind j ""

    SQL
    Database Name
    Host
    Password
    Port
    Username
    Use MySQL
    - true/false

    SQL database will be created on the first save, whether automatic or manual (/pr save)

    Notes
    Heli Kills are attributed to the player who hit the heli the most - not the last hitter.
    If a player dies from his wounds, the person who wounded him gets the PVP kill.
    Distance is recorded based on the wounding shot.

    This is my first attempt at a plugin and my learning has relied massively on the big contributors around here.
    Sections and ideas are recycled from many existing plugins so I want to acknowledge K1lly0u, Wulf, Fujikura. Nogrod, LaserHydra, and others.

    Category list
    Code (Text):
    pvpkills
    pvpdistance
    pvekills
    pvedistance
    npckills
    npcdistance
    deaths
    barrelsdestroyed
    helihits
    helikills
    apckills
    apchits
    suicides
    timeswounded
    explosivesthrown
    arrowsfired
    bulletsfired
    weapontrapsdestroyed
    sleeperskilled
    rocketslaunched
    timeshealed
    airdropslooted
    structuresbuilt
    itemsdeployed
    itemscrafted
    entitiesrepaired
    structuresdemolished
    resourcesgathered
    structuresupgraded
    kdr
    sdr
    <29/05/17 - MySQL only>
    Economics
    PlayTime
    Online/Offline Status
    Recently active number
    </29/05/17 - MySQL only>
     
    SQL demo - Player Stats

    To-Do list.

    oxideimagePR.PNG