Autorank

Autorank

380k Downloads

Autorank disabled and cannot find users

Havoc07 opened this issue ยท 6 comments

commented

Hello, I am using autorank and have a couple of issues. First we can not find where it saves the player data for which rank each player is. Additionally and more importantly it is telling me that the the autorank plugin is disabled. It apparently doesn't like what we have done here:

ranks:
default:
requirements:
time:
value: 1m
results:
rank change: guest;time1
command: 'say &p just got a promotion; broadcast &p has just been promoted to Outlander!'
message: 'Congratulations, you are now an Outlander.'
time1:
requirements:
time:
value: 12h
exp:
value: false
world:
value: world
gamemode:
value: false
has item:
value: false
blocks moved:
value: false
results:
rank change: time1;time2
command: 'say &p has just been promoted to Transient!'
message: 'Congratulations, you are now a Transient.'

the FALSE is causing an issue and disabling the plugin for the server. I put the 'false' value in because with the integers (0) it was constantly giving me the message that the user was being promoted to the time1 rank. Almost like it was reverting the user back to default and then promoting him again though no change was seen. So we figured that the plugin was checking for the milestones and then promoting and then repeating it.

For autorank to work does it require the user to be placed in the permissions file for the permissions plugin in use? (In this case permissionsbukkit)

What should I use instead of the 'false' value?

commented

Closed due to inactivity.

commented

This is the portion of our log concerning the above issue.

2014-08-26 08:27:47 [INFO] [Autorank] ---------------[Autorank Dependencies]---------------
2014-08-26 08:27:47 [SEVERE] Error occurred while enabling Autorank vBeta 2.9.1 (Is it up to date?)
java.lang.NumberFormatException: For input string: "false"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at me.armar.plugins.autorank.AutorankTools.stringtoInt(AutorankTools.java:106)
at me.armar.plugins.autorank.playerchecker.requirement.GamemodeRequirement.setOptions(GamemodeRequirement.java:30)
at me.armar.plugins.autorank.playerchecker.builders.RankChangeBuilder.createRequirement(RankChangeBuilder.java:180)
at me.armar.plugins.autorank.playerchecker.builders.RankChangeBuilder.createFromAdvancedConfig(RankChangeBuilder.java:124)
at me.armar.plugins.autorank.playerchecker.PlayerChecker.initialiseFromConfigs(PlayerChecker.java:48)
at me.armar.plugins.autorank.Autorank.onEnable(Autorank.java:195)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:467)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:383)
at org.bukkit.craftbukkit.v1_6_R3.CraftServer.loadPlugin(CraftServer.java:279)
at org.bukkit.craftbukkit.v1_6_R3.CraftServer.enablePlugins(CraftServer.java:261)
at net.minecraft.server.MinecraftServer.func_71243_i(MinecraftServer.java:518)
at net.minecraft.server.MinecraftServer.func_71222_d(MinecraftServer.java:482)
at net.minecraft.server.MinecraftServer.func_71247_a(MinecraftServer.java:442)
at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:225)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:637)
at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:583)

commented

This error is occuring as you're using the word false, even though it should be an integer. Each requirement has its values. You can look at the wiki for more information. I don't understand the problem you're having with the integers though. Can you explain?

commented

The issue that began everything was the fact that once a player was promoted to the next rank, he would then continue to be promoted to that rank every couple of minutes. We are using Permissionsbukkit which does not auto place the users into the permissions file, is that an issue?

Would it stop doing that once we manually placed each user into the permissions file? It wasn't an error that was coming up to be logged but it was a visible error, if that makes sense. It should not have been promoting him to the same rank every couple of minutes.

commented

Alright, we might try 2.4 and might also try a different version of PEX. Thank you for the help.

commented

PermissionsBukkit is unfortunately bugged. When Autorank promotes a player, it will try to promote the player. PermissionsBukkit will promote that player successfully, but it will still tell that the player is in the old group, not in the new one. So when Autorank asks 'hey, what group is player x in?', PermissionsBukkit will answer with the old group. This is not something Autorank can fix and needs to be fixed by the developer of PermBukkit. I've already put up a request for them to do it. (http://dev.bukkit.org/bukkit-plugins/permbukkit/tickets/285-get-groups-string-player-name-doesnt-return-the-proper/). You could try 2.4 and see if that works.