PlayerRankings

Moved

Total Downloads: 8,314 - First Release: Nov 19, 2015 - Last Update: Jan 17, 2018

5/5, 13 likes
  1. yes you need betterchat plugin and the ranks setup in better chat before it will work correctly
     
  2. Make sure everything is correct in PlayerRanking's config and that your groups in BetterChat are valid with the proper [Tags] and names.
     
  3. so i have to make the Pro and regular group by my own in betterchat ? and then it would do it automatically ?
     
  4. Yes Athena01
     
  5. hi can i reset it?
     
  6. It is doable by erasing ConnectionDB data, and installing one of the older versions that is posted a few pages back which auto-updates individuals automatically instead of on level up.
     
  7. Hi there,

    For some reason the plugin is not giving out rankings?

    I have just surpassed a threshold of 25 hours and should of ranked up but nothing I type the command "/ranks" (Although I changed it to pranks as I already have a command using ranks) and can see that I have the needed hours but am still previous. See screenshot below
    20170926225850_1.jpg

    Here is the cfg for both this plugin and the data for better chat

    Plugin.cfg:
    Code:
    {
      "L33T": {
        "Oxide Group": "default",
        "Playtime": 50.0
      },
      "Pro": {
        "Oxide Group": "default",
        "Playtime": 25.0
      },
      "Regular": {
        "Oxide Group": "default",
        "Playtime": 10.0
      },
      "Newman": {
        "Oxide Group": "default",
        "Playtime": 1.0
      },
      "Settings": {
        "Ignore Admins": false
      }
    }
    Better chat Data:
    Code:
    [
      {
        "GroupName": "default",
        "Priority": 1,
        "Title": {
          "Text": "[New Player]",
          "Color": "White",
          "Size": 15,
          "Hidden": false,
          "HiddenIfNotPrimary": true
        },
        "Username": {
          "Color": "White",
          "Size": 15
        },
        "Message": {
          "Color": "white",
          "Size": 15
        },
        "Format": {
          "Chat": "{Title} {Username}: {Message}",
          "Console": "{Title} {Username}: {Message}"
        }
      },
      {
        "GroupName": "hero",
        "Priority": 2,
        "Title": {
          "Text": "[Hero]",
          "Color": "#6C6CFF",
          "Size": 15,
          "Hidden": false,
          "HiddenIfNotPrimary": false
        },
        "Username": {
          "Color": "#ce422b",
          "Size": 15
        },
        "Message": {
          "Color": "white",
          "Size": 15
        },
        "Format": {
          "Chat": "{Title} {Username}: {Message}",
          "Console": "{Title} {Username}: {Message}"
        }
      },
      {
        "GroupName": "treasurehunter",
        "Priority": 3,
        "Title": {
          "Text": "[Treasure Hunter]",
          "Color": "#55aaff",
          "Size": 15,
          "Hidden": false,
          "HiddenIfNotPrimary": false
        },
        "Username": {
          "Color": "#ce422b",
          "Size": 15
        },
        "Message": {
          "Color": "white",
          "Size": 15
        },
        "Format": {
          "Chat": "{Title} {Username}: {Message}",
          "Console": "{Title} {Username}: {Message}"
        }
      },
      {
        "GroupName": "vip",
        "Priority": 0,
        "Title": {
          "Text": "[VIP]",
          "Color": "#45c920",
          "Size": 15,
          "Hidden": false,
          "HiddenIfNotPrimary": false
        },
        "Username": {
          "Color": "#800000ff",
          "Size": 15
        },
        "Message": {
          "Color": "white",
          "Size": 15
        },
        "Format": {
          "Chat": "{Title} {Username}: {Message}",
          "Console": "{Title} {Username}: {Message}"
        }
      },
      {
        "GroupName": "newman",
        "Priority": 4,
        "Title": {
          "Text": "[Newman]",
          "Color": "#d85540",
          "Size": 15,
          "Hidden": false,
          "HiddenIfNotPrimary": true
        },
        "Username": {
          "Color": "#d85540",
          "Size": 15
        },
        "Message": {
          "Color": "white",
          "Size": 15
        },
        "Format": {
          "Chat": "{Title} {Username}: {Message}",
          "Console": "{Title} {Username}: {Message}"
        }
      },
      {
        "GroupName": "regular",
        "Priority": 5,
        "Title": {
          "Text": "[Regular]",
          "Color": "#0000FF",
          "Size": 15,
          "Hidden": false,
          "HiddenIfNotPrimary": false
        },
        "Username": {
          "Color": "#0000FF",
          "Size": 15
        },
        "Message": {
          "Color": "white",
          "Size": 15
        },
        "Format": {
          "Chat": "{Title} {Username}: {Message}",
          "Console": "{Title} {Username}: {Message}"
        }
      },
      {
        "GroupName": "pro",
        "Priority": 6,
        "Title": {
          "Text": "[Pro]",
          "Color": "#00FF00",
          "Size": 15,
          "Hidden": false,
          "HiddenIfNotPrimary": true
        },
        "Username": {
          "Color": "#00FF00",
          "Size": 15
        },
        "Message": {
          "Color": "white",
          "Size": 15
        },
        "Format": {
          "Chat": "{Title} {Username}: {Message}",
          "Console": "{Title} {Username}: {Message}"
        }
      },
      {
        "GroupName": "l33t",
        "Priority": 7,
        "Title": {
          "Text": "[L33T]",
          "Color": "#FF00FF",
          "Size": 15,
          "Hidden": false,
          "HiddenIfNotPrimary": true
        },
        "Username": {
          "Color": "#FF00FF",
          "Size": 15
        },
        "Message": {
          "Color": "white",
          "Size": 15
        },
        "Format": {
          "Chat": "{Title} {Username}: {Message}",
          "Console": "{Title} {Username}: {Message}"
        }
      }
    ]
    No errors or anything like that in the console and have latest version of Oxide and plugin.
     
  8. OK so with some fiddeling I have managed to get it to rank me up:
    20170926235509_1.jpg

    But now the rank won't show!!!

    I have changed the files as follows:

    PlayerRankings.json:
    Code:
    {
      "L33T": {
        "Oxide Group": "l33t",
        "Playtime": 50.0
      },
      "Pro": {
        "Oxide Group": "pro",
        "Playtime": 25.0
      },
      "Regular": {
        "Oxide Group": "regular",
        "Playtime": 10.0
      },
      "Newman": {
        "Oxide Group": "newman",
        "Playtime": 1.0
      },
      "Settings": {
        "Ignore Admins": false
      }
    }
    Better Chat.json (data):
    Code:
    [
      {
        "GroupName": "default",
        "Priority": 1,
        "Title": {
          "Text": "[New Player]",
          "Color": "White",
          "Size": 15,
          "Hidden": false,
          "HiddenIfNotPrimary": true
        },
        "Username": {
          "Color": "White",
          "Size": 15
        },
        "Message": {
          "Color": "white",
          "Size": 15
        },
        "Format": {
          "Chat": "{Title} {Username}: {Message}",
          "Console": "{Title} {Username}: {Message}"
        }
      },
      {
        "GroupName": "hero",
        "Priority": 2,
        "Title": {
          "Text": "[Hero]",
          "Color": "#6C6CFF",
          "Size": 15,
          "Hidden": false,
          "HiddenIfNotPrimary": true
        },
        "Username": {
          "Color": "#ce422b",
          "Size": 15
        },
        "Message": {
          "Color": "white",
          "Size": 15
        },
        "Format": {
          "Chat": "{Title} {Username}: {Message}",
          "Console": "{Title} {Username}: {Message}"
        }
      },
      {
        "GroupName": "treasurehunter",
        "Priority": 3,
        "Title": {
          "Text": "[Treasure Hunter]",
          "Color": "#55aaff",
          "Size": 15,
          "Hidden": false,
          "HiddenIfNotPrimary": true
        },
        "Username": {
          "Color": "#ce422b",
          "Size": 15
        },
        "Message": {
          "Color": "white",
          "Size": 15
        },
        "Format": {
          "Chat": "{Title} {Username}: {Message}",
          "Console": "{Title} {Username}: {Message}"
        }
      },
      {
        "GroupName": "vip",
        "Priority": 0,
        "Title": {
          "Text": "[VIP]",
          "Color": "#45c920",
          "Size": 15,
          "Hidden": false,
          "HiddenIfNotPrimary": true
        },
        "Username": {
          "Color": "#800000ff",
          "Size": 15
        },
        "Message": {
          "Color": "white",
          "Size": 15
        },
        "Format": {
          "Chat": "{Title} {Username}: {Message}",
          "Console": "{Title} {Username}: {Message}"
        }
      },
      {
        "GroupName": "newman",
        "Priority": 4,
        "Title": {
          "Text": "[Newman]",
          "Color": "#FF00FF",
          "Size": 15,
          "Hidden": false,
          "HiddenIfNotPrimary": true
        },
        "Username": {
          "Color": "#d85540",
          "Size": 15
        },
        "Message": {
          "Color": "white",
          "Size": 15
        },
        "Format": {
          "Chat": "{Title} {Username}: {Message}",
          "Console": "{Title} {Username}: {Message}"
        }
      },
      {
        "GroupName": "regular",
        "Priority": 5,
        "Title": {
          "Text": "[Regular]",
          "Color": "#0000FF",
          "Size": 15,
          "Hidden": false,
          "HiddenIfNotPrimary": true
        },
        "Username": {
          "Color": "#0000FF",
          "Size": 15
        },
        "Message": {
          "Color": "white",
          "Size": 15
        },
        "Format": {
          "Chat": "{Title} {Username}: {Message}",
          "Console": "{Title} {Username}: {Message}"
        }
      },
      {
        "GroupName": "pro",
        "Priority": 6,
        "Title": {
          "Text": "[Pro]",
          "Color": "#00FF00",
          "Size": 15,
          "Hidden": false,
          "HiddenIfNotPrimary": true
        },
        "Username": {
          "Color": "#00FF00",
          "Size": 15
        },
        "Message": {
          "Color": "white",
          "Size": 15
        },
        "Format": {
          "Chat": "{Title} {Username}: {Message}",
          "Console": "{Title} {Username}: {Message}"
        }
      },
      {
        "GroupName": "l33t",
        "Priority": 7,
        "Title": {
          "Text": "[L33T]",
          "Color": "#d85540",
          "Size": 15,
          "Hidden": false,
          "HiddenIfNotPrimary": true
        },
        "Username": {
          "Color": "#FF00FF",
          "Size": 15
        },
        "Message": {
          "Color": "white",
          "Size": 15
        },
        "Format": {
          "Chat": "{Title} {Username}: {Message}",
          "Console": "{Title} {Username}: {Message}"
        }
      }
    ]
    If i do show user doc in rcon I get:
    Code:
    User 'DoC (xxxxxx)' groups:
    default, vip, admin, pro
    This is the BetterChat.json (config):
    Code:
    {
      "Maximal Characters Per Message": 128,
      "Maximal Titles": 25
    }
    Oh I forgot to mention I made the default group the Parent of all the extra groups this creates as I cba to copy each permission to each group!!! yes I'm lazy
     
  9. Hi
    Change "HiddenIfNotPrimary": true - to False on all as your vip is overriding the other rank
     
  10. I did post the BetterChat data file on that post to check if it was correct and was advised to change it like so:

    Code:
    [
      {
        "GroupName": "default",
        "Priority": 9,
        "Title": {
          "Text": "[New Player]",
          "Color": "White",
          "Size": 15,
          "Hidden": false,
          "HiddenIfNotPrimary": true
        },
        "Username": {
          "Color": "White",
          "Size": 15
        },
        "Message": {
          "Color": "white",
          "Size": 15
        },
        "Format": {
          "Chat": "{Title} {Username}: {Message}",
          "Console": "{Title} {Username}: {Message}"
        }
      },
      {
        "GroupName": "admin",
        "Priority": 0,
        "Title": {
          "Text": "[Admin]",
          "Color": "#55aaff",
          "Size": 15,
          "Hidden": false,
          "HiddenIfNotPrimary": false
        },
        "Username": {
          "Color": "#DCFF66",
          "Size": 15
        },
        "Message": {
          "Color": "white",
          "Size": 15
        },
        "Format": {
          "Chat": "{Title} {Username}: {Message}",
          "Console": "{Title} {Username}: {Message}"
        }
      },
      {
        "GroupName": "moderator",
        "Priority": 1,
        "Title": {
          "Text": "[Moderator]",
          "Color": "#55aaff",
          "Size": 15,
          "Hidden": false,
          "HiddenIfNotPrimary": false
        },
        "Username": {
          "Color": "green",
          "Size": 15
        },
        "Message": {
          "Color": "white",
          "Size": 15
        },
        "Format": {
          "Chat": "{Title} {Username}: {Message}",
          "Console": "{Title} {Username}: {Message}"
        }
      },
      {
        "GroupName": "hero",
        "Priority": 3,
        "Title": {
          "Text": "[Hero]",
          "Color": "#6C6CFF",
          "Size": 15,
          "Hidden": false,
          "HiddenIfNotPrimary": true
        },
        "Username": {
          "Color": "#6C6CFF",
          "Size": 15
        },
        "Message": {
          "Color": "white",
          "Size": 15
        },
        "Format": {
          "Chat": "{Title} {Username}: {Message}",
          "Console": "{Title} {Username}: {Message}"
        }
      },
      {
        "GroupName": "treasurehunter",
        "Priority": 4,
        "Title": {
          "Text": "[Treasure Hunter]",
          "Color": "#55aaff",
          "Size": 15,
          "Hidden": false,
          "HiddenIfNotPrimary": true
        },
        "Username": {
          "Color": "#55aaff",
          "Size": 15
        },
        "Message": {
          "Color": "white",
          "Size": 15
        },
        "Format": {
          "Chat": "{Title} {Username}: {Message}",
          "Console": "{Title} {Username}: {Message}"
        }
      },
      {
        "GroupName": "vip",
        "Priority": 2,
        "Title": {
          "Text": "[VIP]",
          "Color": "#45c920",
          "Size": 15,
          "Hidden": false,
          "HiddenIfNotPrimary": true
        },
        "Username": {
          "Color": "#45c920",
          "Size": 15
        },
        "Message": {
          "Color": "white",
          "Size": 15
        },
        "Format": {
          "Chat": "{Title} {Username}: {Message}",
          "Console": "{Title} {Username}: {Message}"
        }
      },
      {
        "GroupName": "newman",
        "Priority": 5,
        "Title": {
          "Text": "[Newman]",
          "Color": "#FF00FF",
          "Size": 15,
          "Hidden": false,
          "HiddenIfNotPrimary": true
        },
        "Username": {
          "Color": "#FF00FF",
          "Size": 15
        },
        "Message": {
          "Color": "white",
          "Size": 15
        },
        "Format": {
          "Chat": "{Title} {Username}: {Message}",
          "Console": "{Title} {Username}: {Message}"
        }
      },
      {
        "GroupName": "regular",
        "Priority": 6,
        "Title": {
          "Text": "[Regular]",
          "Color": "#0000FF",
          "Size": 15,
          "Hidden": false,
          "HiddenIfNotPrimary": true
        },
        "Username": {
          "Color": "#0000FF",
          "Size": 15
        },
        "Message": {
          "Color": "white",
          "Size": 15
        },
        "Format": {
          "Chat": "{Title} {Username}: {Message}",
          "Console": "{Title} {Username}: {Message}"
        }
      },
      {
        "GroupName": "pro",
        "Priority": 7,
        "Title": {
          "Text": "[Pro]",
          "Color": "#00FF00",
          "Size": 15,
          "Hidden": false,
          "HiddenIfNotPrimary": true
        },
        "Username": {
          "Color": "#00FF00",
          "Size": 15
        },
        "Message": {
          "Color": "white",
          "Size": 15
        },
        "Format": {
          "Chat": "{Title} {Username}: {Message}",
          "Console": "{Title} {Username}: {Message}"
        }
      },
      {
        "GroupName": "l33t",
        "Priority": 8,
        "Title": {
          "Text": "[L33T]",
          "Color": "#d85540",
          "Size": 15,
          "Hidden": false,
          "HiddenIfNotPrimary": true
        },
        "Username": {
          "Color": "#d85540",
          "Size": 15
        },
        "Message": {
          "Color": "white",
          "Size": 15
        },
        "Format": {
          "Chat": "{Title} {Username}: {Message}",
          "Console": "{Title} {Username}: {Message}"
        }
      }
    ]
    I had missed out admin and mod. Now with the above if you're not a VIP then player rankings shows but if you're a VIP then you don't get the player rankings title!

    I'm so confused.com!
     
  11. Hi
    I have all my ranks set to "HiddenIfNotPrimary": false
    The plugin grants a player a rank and removes the old one. I don't have VIP in PlayerRankings config I just manually give the user that rank when needed and its show ranks perfectly.


    PS. Prymary click my pic and start a conversation I can help more if needed
     
  12. The fiddling around was you changing the "Oxide Groups" to the groupnames in your BetterChat data file :p. Originally, they were all set to default and most likely left there by mistake when you copy/pasted the ranks. As for them not showing up, that is because of BetterChat and the advice @PUREjaguar gave you should be correct.
     
  13. Ah wicked it's working now! I had to have the [New Player] one as true as that was showing even if you had Pro but all working now. Soz for the spam was just getting so confuggled with it!!
     
  14. Are we able to remove "Pro" and "Regular" ranks from appearing? I have the config working (it appears) except those two still remain visible on /ranks
    Ranks1.jpg

    It all seems to be working properly. Those who have more than 10 hours do not show up with BetterChat and those who fall into the correct ranks do no problem. My only concern is Pro / Regular and if they're permanent?

    ~FoX~
    [DOUBLEPOST=1506892697][/DOUBLEPOST]
    I think this answers it...

     
  15. How do i reset hours?
     
  16. does i need to give the permissions (like default have) for each rank created?
     
  17. By deleting ConnectionDB and installing an older version of PR which I put a few pages back.
    No, PR goes by the Oxide Group names which are meant to be the same for BetterChat. The individual above had it wrong and that it is why he was having difficulty.
     
  18. -------
     
    Last edited by a moderator: Oct 24, 2017
  19. i have modified the PalyerRankings.CS u can easy find inside the two line Pro and regular, u can replace it by what you want, i making all of my rank (9 in total) like this . That s automaticatly create the good .JSON with all ranks needed.
     
  20. I'm almost at a loss here... I installed the plugin, along with BetterChat.
    I have setup my BetterChat groups and put my groups in the configuration I want them to be. I reload the plugin and it automatically adds "regular" and "pro" back to the config AND my BetterChat groups.
    I did that three times or more before the last time, I even performed a restart of the server to apply the changes.
    The result was the same, it added "pro" and "regular" back to the .json and added the groups back to BetterChat.

    Please if someone knows how to prevent these two groups from showing back up, post here. <3