Autorank

Autorank

380k Downloads

Autorank dosnt remove players from old rank using PEX.

FrankHG opened this issue ยท 27 comments

commented

I have sort of an issue here..

I have autorank and groupmanager running just fine in a simple setup with spigot 1.8.9. now im trying to do an upgrade to spigot 1.11.2, autorank 3.8.5 and newest PEX 1.23.4. as of 23.01.2017

the problem seems to be that autorank instead of 'promoting' players in PEX, it simply adds them to a new rank .. so when all rankups has occured players is in 'all' my ranks.

Ive tried using the AdvancedConfig and adding fx. "pex user @p group set Hero" in the command section 'pex' gives me confirmation in console but autorank still dos not remove my users from the rank they are ranking up from.

regards Frank.,

commented

Try using the pex rankup command instead, and define in pex your ladder for the ranks. :)

commented

Using rankup command "/pex promote" will allow Autorank to potentially rank my players to admins .. that i do want not :-)
But i will try it ..

does autorank determine what permissionplugin beeing used and change (internal) rankup command according to that??

commented

Tested it .. and sadly it dosnt work as planned.

It think that the debug might give a clue with 'adding':

[22:15:28 INFO]: [Autorank] Promote FrankHG globally from Member to Scout
[22:15:28 INFO]: [Autorank DEBUG] Reset player data for FrankHG
[22:15:28 INFO]: [Autorank DEBUG] Group of FrankHG before adding: Member
[22:15:28 INFO]: [Autorank DEBUG] Reset player data for FrankHG
[22:15:28 INFO]: [Autorank DEBUG] Group of FrankHG after adding: Scout
[22:15:29 INFO]: User @p/@p promoted to Master group
[22:15:29 INFO]: [PermissionsEx] User @p/@p has been promoted to Master group on default ladder by console

[22:19:28 INFO]: [Autorank] Promote FrankHG globally from Scout to Hero
[22:19:28 INFO]: [Autorank DEBUG] Reset player data for FrankHG
[22:19:28 INFO]: [Autorank DEBUG] Group of FrankHG before adding: Scout
[22:19:28 INFO]: [Autorank DEBUG] Reset player data for FrankHG
[22:19:28 INFO]: [Autorank DEBUG] Group of FrankHG after adding: Hero
[22:19:29 INFO]: User @p/@p promoted to Expert group
[22:19:29 INFO]: [PermissionsEx] User @p/@p has been promoted to Expert group on default ladder by console

[22:34:29 INFO]: [Autorank] Promote FrankHG globally from Hero to Master
[22:34:29 INFO]: [Autorank DEBUG] Reset player data for FrankHG
[22:34:29 INFO]: [Autorank DEBUG] Group of FrankHG before adding: Hero
[22:34:29 INFO]: [Autorank DEBUG] Reset player data for FrankHG
[22:34:29 INFO]: [Autorank DEBUG] Group of FrankHG after adding: Master
[22:34:29 INFO]: User @p/@p promoted to Officer group
[22:34:29 INFO]: [PermissionsEx] User @p/@p has been promoted to Officer group on default ladder by console

pex user frankhg
[22:34:47 INFO]: '3e835453-fd15-400e-86c0-47371ad9117f/FrankHG' is a member of:
[22:34:47 INFO]: Master (rank 700 @ default)
[22:34:47 INFO]: Hero (rank 800 @ default)
[22:34:47 INFO]: Scout (rank 900 @ default)
[22:34:47 INFO]: Member (rank 1000 @ default)
[22:34:47 INFO]: FrankHG's permissions:
[22:34:47 INFO]: 1) permissions.* (own)
[22:34:47 INFO]: FrankHG's options:
[22:34:47 INFO]: name = "FrankHG"

And something fishy is going on .. it seems as PEX breifly adds me to a even higher rank.
My rankladder is:
Member
Scout
Hero
Master
Expert
Officer

commented

What if you give AutoRank two commands when they rankup, one to add a rank, the other to remove the last one ?
./pex user username add newrank
./pex user username remove oldrank

Edit: atleast I think thats the commands

commented

That sucks, I don't know then. sorry :(

Maybe if I can see your configs?
Pastebin them here

commented

close enough .. its
/pex user @p group add [group]

ive tested it and sorry to say still no cigar .. but a good suggestion

commented

Autorank Advanced: http://pastebin.com/2z9YirGi
Autorank Settings: http://pastebin.com/KLxV5GNN

i dont think PEX is needed :-)

commented

Hi, PEX won't promote to admin, unless admin is in the ladder, just remove it or use another ladder chain

we moved from groupmanager, it is a change (and so much better), however if you don't want to add the groups to established, just use set. That removes the subsidiary groups.

We do this, but it's a bit more complex as we have multiverse :)

commented

Frizzbee30
I figured that out myself and removed all my staff from the rankladder. :-)
What i ment was that the configs from PEX wasnt needed for Nesseley, i AM going to switch to PEX but like ive mentioned AutoRank dosnt 'set' or 'promote' it seems as it 'adds' players ..

commented

No I dont need the PEX configs :P

Gonna try to make a server myself and see how it goes...
I doo see a problem with the "rank change rank1;rank2" option. this is what makes it bug.

Using a config like this should fix all your problems.
http://pastebin.com/VPZ27hct

PS: I also tested this with the version 3.8.5.1

Hope this will fix it for you too :)

commented

Nesseley im not sure what ure saying..
I know that my command dosnt add my player to the new rank. but this is done by Autorank automaticlly.. but it should remove the player from the old rank and it dosnt..

-- Sorry

commented

Dont use the "rank change" option. Only use commands. Like I did in my config

Rank change option is what makes the player be in both groups.

commented

Nesseley .. Ahh ., sorry for my mistake !

commented

Not a problem, did it work for you now? :)

commented

.. no ..
EDIT; Now it dosnt rank me up .. :-/ it says it does and runs the commands .. but im stuck at default .. LOL

command: 'broadcast &p er lige blevet forfremmet til Spejder!; pex user @p group add Spejder; pex user @p group remove Palle'

commented

Remember to remove the ranks on the persons in pex first.
Send me your advanced again!

And update AutoRank to 3.8.5.1

commented

I Dont Get It .

[14:08:22 INFO]: [Autorank DEBUG] Checking players for automatic ranking
[14:08:22 INFO]: CONSOLE issued server command: /broadcast FrankHG er lige blevet forfremmet til Spejder!
[14:08:22 INFO]: User "@p/@p" added to group "Spejder"!
[14:08:23 INFO]: User "@p/@p" removed from group "Palle"!

pex user frankhg
[14:10:27 INFO]: '3e835453-fd15-400e-86c0-47371ad9117f/FrankHG' is a member of:
[14:10:27 INFO]: Palle (rank 1000 @ default)
[14:10:27 INFO]: FrankHG's permissions:
[14:10:27 INFO]: 1) permissions.* (own)
[14:10:27 INFO]: FrankHG's options:
[14:10:27 INFO]: name = "FrankHG"

commented

its not @ !!!! its &

commented

-What a bummer .. ;)

EDIT: That whats been the problem all along .. AutoRank dosnt like @ .. ive been starring too much on my screen i guess

commented

Does it work now? :)

commented

Remember you have to remove all groups on your player, but the starter for it to start working for you

commented

it does:

[14:17:29 INFO]: [Autorank DEBUG] Checking players for automatic ranking
[14:17:29 INFO]: CONSOLE issued server command: /broadcast FrankHG er lige blevet forfremmet til Spejder!
[14:17:29 INFO]: User "3e835453-fd15-400e-86c0-47371ad9117f/FrankHG" added to group "Spejder"!
[14:17:29 INFO]: User "3e835453-fd15-400e-86c0-47371ad9117f/FrankHG" removed from group "Palle"!
[14:17:30 INFO]: [Autorank DEBUG] Saving all data files...

commented

Check if you are in both groups now, you shouldt be if you did it right

commented

im just in one group ., the right group ..

Thank You very much for your help :-)

commented

No problem! Glad to help a danish guy, haha!

commented

Well ., This is the solution to my problem ... if youre running PEX dont use the buildin ranking feature use the commands instead ..

FrankHG
ps: Nesseley is the man !