Player Ranks

Player ranks and stats database

Total Downloads: 4,906 - First Release: Mar 4, 2017 - Last Update: May 29, 2018

5/5, 19 likes
  1. How do I stop a moderator's stats from being displayed? ownerid users are not being shown but moderatorid is
     
  2. Hi Mcphee,
    There's no provision for that right now.

    Within this plugin the 'admin' status is only used to determine whether stats should be displayed or not, so you could safely

    alter line 2994 of the cs to read
    if (player.net.connection.authLevel < 1)
    instead of
    if (player.net.connection.authLevel < 2)

    That would result in Authlevel 1 and Authlevel 2 being identified by the plugin as 'Admin'.
     
    Last edited by a moderator: Oct 2, 2017
  3. Suggestion
    Automatically wipe a users playerstats if banned from server
     
  4. I started playing Rust recently and rented a server. Then I installed the following plugin Player Ranks for Rust | Oxide. The plugin works great, many thanks to the author. However I was wondering is there a way to connect to the database externally and display those statistics for each player on a website?

    If there's not a way can I write a plugin that dumps the data in a json format in a file and then connect to the server and fetch that file via ftp? Any ideas how to achieve that?
     
  5. Yes setup the MySql data in the config file like described on the plugins overview
     
  6. Hey @Steenamaroo I just got PilotEject from the un-named site and it's causing Player Ranks to throw this error when the pilot dies:

    Code:
    (09:57:07) | [PilotEject] The helicopter will malfunction in 570.287 seconds<----- Pilot Eject Starts(09:58:45) | [JPipes] 13 pipes saved(09:58:45) | Saved 107,752 ents, serialization(0.00), write(0.03), disk(0.01) totalstall(0.06).(09:58:45) | Saving complete(10:03:23) | [PlayerRanks] Player Ranks MySQL Database Was Saved.(10:03:23) | [PlayerRanks] Player Ranks Local Database Was Saved.(10:03:45) | [JPipes] 13 pipes saved(10:03:46) | Saved 107,831 ents, serialization(0.00), write(0.03), disk(0.01) totalstall(0.06).(10:03:46) | Saving completeWhere pilot npc dies from PilotEject plugin's timer -----> (10:06:42) | Failed to call hook 'OnEntityDeath' on plugin 'PlayerRanks v1.3.2' (NullReferenceException: Object reference not set to an instance of an object)(10:06:42) | at Oxide.Plugins.PlayerRanks.ProcessHeliKills (.BasePlayer player) [0x00000] in <filename unknown>:0at Oxide.Plugins.PlayerRanks.OnEntityDeath (.BaseEntity entity, .HitInfo hitinfo, .HitInfo info) [0x00000] in <filename unknown>:0at Oxide.Plugins.PlayerRanks.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0
    
    If you need the PilotEject plugin .cs file so you can come up with a solution let me know ;)
     
  7. Steenamaroo updated Player Ranks with a new update entry:

    1.3.2

     
  8. Had a player that had perms for one night, not admin now, I change his admin status to 'false' but when I reload it goes back to true.. Any way of making it stay at false?
     
  9. The status is checked and set every times player logs in/out so if he's being set as admin he must still have auth level 2, as far as I remember.
     
  10. He definitely has no perms anymore.. It was for one night, then it was removed
     
  11. Perms and authlevel two are two different things.

    Changing of authlevel requires server restart too, as far as I'm aware.
    [DOUBLEPOST=1508167474][/DOUBLEPOST]Oh, I might have something.
    Will send a PM shortly.
    [DOUBLEPOST=1508167652][/DOUBLEPOST]PM sent.
    The else condition was missing to return status to false.

    Thank you for flagging it.
     
  12. Yeah, He had perms last Friday for a few hours, removed moderator and have had many restarts since.. he is 100% not moderator or have any perms, completely normal player
     
  13. Works perfectly. Thanks
     
  14. Been messing with this plugin and for single player stats - its one of the best ive seen.

    BUT

    How could we get say the top 25 player stats on one page or can someone even do this ?
    @Plugin Coder - could u add a command so say i wanted to see another users stats i would just enter

    /pr Name (Players name) instead of /pr tops to see my own.
     
  15. Can you describe better what you mean?
    Right now you can view the top X players per category,
    but there's no option for an overall table or spreadsheet covering the top X players in every category.
    Keep in mind, though, there's about 30 categories.

    Yeah, I could add that. Sounds like a good idea. :)
     
  16. that would be excellant BBUK
    I like looking at stats,but im such a nosey sod i want to see what others have :)
     
  17. Lol, fair enough. :)

    Have you tried the sql/web stuff?
    There's an example in my sig.
     
  18. Steenamaroo updated Player Ranks with a new update entry:

    1.3.3

     
  19. I just updated to latest Oxide and now get this error (oxide 2.0,3596)

    Code:
    Error while compiling: PlayerRanks.cs(3272,14): error CS0234: The type or namespace name `MySql' does not exist in the namespace `Oxide.Core'. Are you missing an assembly reference?
     
  20. Wulf

    Wulf Community Admin

    I don't think there's any way you could still be getting that with the latest Oxide. Could I see your full log please?