I understand public admin stats true/false but how do I allow a moderator to participate on the PlayerRanks? Disallow admins, allow moderators.

Player Ranks
Player ranks and stats database
Total Downloads: 4,902 - First Release: Mar 4, 2017 - Last Update: May 29, 2018
- 5/5, 19 likes
-
The plug only checks for admin by checking for authlevel being 2.
I believe moderator authlevel is 1 so they are included by default and there is no option to alter that. -
Ok. Understood. Perhaps somewhere I created a glitch.
I had a user who was authlevel 2. I then changed him to authlevel 1. PlayerRanks was online before I made him authlevel anything. I'm assuming somehow it thinks he is still an admin? I have checked the config and changed his "admin = false" many times, reloaded right after, double checked users.cfg hes auth1. I just removed him completely, re-wrote config while I went, and re-added him. Also again changed admin=true to false, because it was once again somehow enabled.
Working on trying to figure it out. Thanks for the fast response. -
Is your PlayerRanks.cs modified?
Someone, a while back, asked me to change it such that moderators and admin were covered by this setting.
Long shot....was it you?
The plugin checks status every time a player logs in, or out.
Code:if (player.net.connection.authLevel < 2) return false;
-
I use PlayerRanks and PlayerRankings and have an issue with the chat commands.
If the server restarts and players give the chat command /ranks
the chat shows the commands for PlayerRanks, /pr tops and /pr *category*
I have to reload every time after the server restarts the plugin PlayerRankings to get the right chat command:
PlayerRankings has replaced the 'ranks' chat command previously registered by PlayerRanks.
How can i solve this withtout reloading the plugin manually?
I already checked the PlayerRanks.json and found this:
Code:"Options - Chat Command Alias": "ranks",
I also Posted it on Support for PlayerRankings.
Need help....
Thanks in Advance! -
if you change
"Options - Chat Command Alias": "ranks",
to something else like
"Options - Chat Command Alias": "playerranks",
there should no longer be a conflict.
I'm not sure if a server restart is required to purge old registered commands or not.
I imagine registered commands can probably be viewed and amended but I've never looking into that.
If that's the case, I'll see about purging all player ranks commands then re-registering them on-load. -
Thanks for the response, Steen.
No, the PlayerRanks.cs is not modified. Under Oxide/Data/PlayerRanks.json, when I change the "admin=true" to "admin=false", somehow, eventually it gets reverted to True.
I have stripped myself of Owner status and I'm an authlevel 0 on my server, but it still says Admin=True in the json when I log in. -
lol. Turns out the plugin has never allowed for demotion.
Don't edit the data file, but try this.Attached Files:
-
-
Yup. That fixed it. Thank you!
-
-
I've set static bool useTimedTopList = false; but I'm still getting the player ranks in game chat. How do I remove this? also, I've added code under void OnServerInitialized() Puts("useTimedTopList: " + useTimedTopList); and it's still printing to the console useTimedTopList: True
-
You're editing the .cs?
just set useTimedTopList to false in the config + reload the plugin. -
?
One more question. I see the data is stored in PlayerRankings.JSON but there also appears to be some ability to store data in a MySQL database. How do you enable that? -
This is how most plugins work - You should never have cause to edit the .cs. -
I was trying to edit it in the .cs. Looking at the PlayerRanks.JSON file i do see the config. Thanks!
Also, how about the mySQL? I see those settings in the PlayerRanks.JSON. If I supply a 3rd part MySQL database and populate those fields does it automatically create the database and table(s)?Last edited by a moderator: Feb 28, 2018 -
I'd recommend re-downloading the .cs for a fresh start.
If you enable SQL in config and enter the required credentials, your table will be created automatically.
This is all in the overview. -
hello
If I disable a thrown explosive, it will still appear in the game. it is the only thing that is still displayed, even if it is disabled. -
Steenamaroo updated Player Ranks with a new update entry:
1.3.5
[DOUBLEPOST=1520086018][/DOUBLEPOST]
I've addressed that and a few other things which were mentioned recently. -
I've got the mysql database working, but I'm having a hard time getting the data to wipe. When I type /pr wipe in the game it's wiping the PlayerRanks.JSON file, but it doesn't wipe the database. If I delete all the records in the database through phpbyadmin, they get repopulated with the old data (before i did pr/ wipe). Any idea where it's saving the data besides PlayerRanks.JSON in the Oxide/Data folder?
-
Hi,
/pr wipe only wipes the data file for the plugin.
The SQL data needs wiped separately, manually.
I always just dropped the table and let the plugin create it afresh.
Thinking about it, I probably could just make the plugin do the whole job in one command....I might include that in the next version.
I'm not sure why your table is repopulating with old data.
Can you confirm that the PlayerRanks data file wipe is happening successfully?
I.E. Is everything returning to zero in-game?
Note, stats like economics and playtime do not reset - Those are retrieved from other plugins.