Autorank doesn't keep track of Time?
PListc opened this issue ยท 6 comments
No matter how long a player is on the server, /ar check displays 0 minutes. If I manually edit the data file to say 5 minutes, then /ar check will display 5 minutes... and playing for a while after that it doesn't update time accordingly - it will continue to say 5 minutes have been played. Even with this manually set, /ar complete # doesn't promote me to the rank.
I've tried both your 1.7.1 and 2.9.1 beta versions, I've tried using OnTime, Stats and AutoRank's default... no time is being kept. I've made sure that the AutoRank is enabled as well and the log files say that it correctly configured.
Any ideas?
Can you show me your start-up logs, and the output of /ar debug? (Via pastebin please)
New problem after I learned that this is updated via intervals... Not sure how it began working, but it has.
Here's the error output using 2.9.1 beta: [14:41:29] [Server thread/INFO]: [Autorank] Interval check every 5 minutes.
[14:41:29] [Server thread/INFO]: [Autorank] Data file loaded
[14:41:29] [Server thread/INFO]: [Autorank] Vault found and hooked!
[14:41:29] [Server thread/INFO]: [Autorank] ---------------[Autorank Dependencies]---------------
[14:41:29] [Server thread/INFO]: [Autorank] Searching dependencies...
[14:41:29] [Server thread/INFO]: [Autorank] No stats plugin found! Most requirements cannot be used!
[14:41:29] [Server thread/INFO]: [Autorank] WorldGuard has been found and can be used!
[14:41:29] [Server thread/INFO]: [Autorank] mcMMO has been found and can be used!
[14:41:29] [Server thread/INFO]: [Autorank] Factions has not been found!
[14:41:29] [Server thread/INFO]: [Autorank] ---------------[Autorank Dependencies]---------------
[14:41:29] [Server thread/ERROR]: Error occurred while enabling Autorank vBeta 2.9.1 (Is it up to date?)
java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String
at me.armar.plugins.autorank.playerchecker.builders.RankChangeBuilder.createFromSimpleConfig(RankChangeBuilder.java:41) ~[?:?]
at me.armar.plugins.autorank.playerchecker.PlayerChecker.initialiseFromConfigs(PlayerChecker.java:50) ~[?:?]
at me.armar.plugins.autorank.Autorank.onEnable(Autorank.java:195) ~[?:?]
And error results when I use SimpleConfig.yml (now a requirement file?) using the following:
Guest:
requirements:
time:
value: 2m
results:
rank change: Guest;Initiate
command: 'say &p just got a promotion; broadcast &p has just been promoted to Initiate!'
message: 'Congratulations, you now hold the rank of Initiate in the World!'
Initiate:
requirements:
time:
value: 3m
results:
rank change: Initiate;Novice
command: 'say &p just got a promotion; broadcast &p has just been promoted to Novice!'
message: 'Congratulations, you now hold the rank of Novice in the World!'
Novice:
requirements:
time:
value: 4m
results:
rank change: Novice;Apprentice
command: 'say &p just got a promotion; broadcast &p has just been promoted to Apprentice!'
message: 'Congratulations, you now hold the rank of Apprentice in the World!'
Apprentice:
requirements:
time:
value: 5m
results:
rank change: Apprentice;Veteran
command: 'say &p just got a promotion; broadcast &p has just been promoted to Veteran!'
message: 'Congratulations, you now hold the rank of Veteran in the World!'
NOTE that if I instead go with the basic:
Guest:Initiate after 2m
Initiate:Novice after 3m
Then the program enables just fine... why can't I use the the slightly more advanced config above?
This line was changed in your recent builds:
"# If this is false, the SimpleConfig will be used for ranking."
Previously it would say other advanced settings would be ignored - quite ambiguous, ya? Well, now everything is fine...
Sorry man, I was not trying to upset you. You can toggle between Simple and Advanced config with the 'use advanced config' option.
Here's the pastebin of the config I would like to use:
http://pastebin.com/CMcpvBRE
Here's the pastebin of the log errors:
http://pastebin.com/KQ27Mknn
With this above, /ar debug doesn't work because the plugin never gets enabled. Now, from my last post, the basic and default SimpleConfig.yml produces this debug output (after I capitalized the groups within)
http://pastebin.com/w74uHVt3
With this new build, I guess the question begs - how does it know when to use AdvancedConfig and not SimpleConfig? It seems the latter is a hard requirement, yes? I can't even delete SimpleConfig from my system - it gets autogenerated if it doesn't already exist. I tried copying and pasting what is in Advanced into Simple and again, the plugin wouldn't enable... I'm dying for assistance mate - please let me know what I can do to speed this up. Thank you