Autorank

Autorank

380k Downloads

Rank progression cannot occur even though player had the necessary pre-requisites.

Zyrille opened this issue ยท 9 comments

commented

I'm using Autorank 4.0.5 on my Spigot Minecraft 1.11.2 server. I've installed and reinstalled autorank many times and had finally gotten it working. However prior the install that actually worked, some players have already logged in and I suppose the server has technically recorded data from them.

Now after the install, the only pre-requisite I added was for the player to be inside group1 to be promoted to group2, however AR says that I need to choose a path since there are multiple ones. Upon choosing, regardless of the fact that the player was in the group, it says pre-requisites are not met.

Would anyone have any idea on how to fix this?

I've already tried manually editing the playerdata.yml to manually set their 'chosen' rank. However as soon as I logged on that character in-game, I got promoted to the next rank because I had all the requirements, which I thought fixed the problem but upon checking /ar check, it seems that AR didn't choose a path for me.

These are isolated cases for players who's had ranks before, everyone who entered the server for the 'first' time after installing the working version of ar for me are able to rank up properly.

commented

Could you provide your paths file and the player data file?

commented

If you want to reset their progress, reset all their data (try removing their whole entry instead of just a few things).

commented

Are you trying to make a linear ranking system like, group1 > group2 > group3?

commented

@Staartvin If I reset their progress, I assume I have to erase their entries inside my permissions (i use pex) file too?

Paths: https://pastebin.com/vWGVnnDY

Playerdata: https://pastebin.com/T5maeMbe

@FrozenBeard I have already created the linear ranking system, yes. Please see my paths.yml content above.

commented

Found a way to fix! I did the following steps for reference if anyone runs into the same problem:

  • stopped the server completely
  • edited user permissions and removed from the group
  • edited playerdata and removed player's information/data
  • started the server
  • added the player to the "default (Beginner)" rank which is also the starting point of my autoranks
  • made the player choose the first part of the path listed in my paths.yml

Thank you @Staartvin for suggesting the data wipe. I didn't know at first how to go about that safely without damaging the plugin and current settings but it's all good now.

commented

Okay, I think I celebrated too early. For some reason after doing this, autorank isn't reading the time I'm spending online.

commented

So it correctly determines what path players should be in, but it does not count time anymore?

commented

There's actually... a lot of issues that cropped up after that.

Time being recorded as an issue:
When I do the steps from the one I listed above for everyone else, time still moves for them, but for me (who's an admin/owner) it isn't working for some reason. I know there is the permission node to exempt people from time being recorded but I don't have it anywhere near my permissions so I'm not sure why it's doing that. I've removed "*" from my permission nodes too and it still didn't work.

Console running the commands:
Another problem I ran into was when the member was a part of the moderator group and the second autorank from my paths yml which is the Adventurer group. So everything is okay, they log into the server, they got the Beginner Rank > moved into the Adventurer rank after 1 minute, I promoted the player to moderator so they are tagged with [Moderator] Username [AutorankRank]. However the problem came in when these people were trying to level up from Adventurer > Apprentice. For some reason when console ran the command, their progression to Adventurer > Apprentice did not happen. From what you can see in my paths.yml file, I "promote" them through pex in the autorank cluster to avoid a cluttered pex file, but should I "add" the groups coming after instead of promoting?

/AR top resetting:
So everytime I do a restart on my server, or I actually can't remember what triggers it the /ar top resets all the times and I'm not sure how to configure it properly so it can list down the time from /ar activity. Players have been starting to complain about the /ar top not being accurate. :<

commented

The issue encountered was more of a permissions plugin, but some were simply misconfigurations which @Staartvin was kind enough to patiently run me through.

Issue: /ar top resetting everytime there is a restart
Fix: in your configuration, set globaltime leaderboard to false.

Issue: autorank isn't detecting the group pre-requisite for the next rank
Fix: This specially happens if you have multiple groups in your permission file, for my server I have three (autorank, supporter ranks, staff ranks) which all has their own ladder (I use PEX); make sure you turn 'primary Vault group' to false in Settings.yml so autorank will recognize all of the groups a player is in instead of just the primary one.

The console running the commands issue was actually a permissions issue; so unrelated to this.

Thanks again to the author for being awesome and sharing his time trying to troubleshoot the issues I was having.