Autorank

Autorank

380k Downloads

Autorank bug

GiuseppeGroth opened this issue ยท 2 comments

commented

Autorank is disabled. Ceck your server.log

[22:23:49] [Server thread/INFO]: [Autorank] Enabling Autorank v${project.version}
[22:23:49] [Server thread/INFO]: [Autorank] Simple config file loaded
[22:23:49] [Server thread/INFO]: [Autorank] Advanced config file loaded
[22:23:49] [Server thread/INFO]: [Autorank] New playerdata.yml file loaded. AR can keep track of player progress now!
[22:23:49] [Server thread/INFO]: [Autorank] Successfully established connection to localhost:3306
[22:23:49] [Server thread/INFO]: [Autorank] Interval check every 1 minutes.
[22:23:49] [Server thread/INFO]: [Autorank] Data file loaded
[22:23:49] [Server thread/INFO]: [Autorank] Essentials was found! AFK integration can be used.
[22:23:49] [Server thread/INFO]: [Autorank] Vault found and hooked!
[22:23:49] [Server thread/ERROR]: Error occurred while enabling Autorank v${project.version} (Is it up to date?)
java.lang.NoClassDefFoundError: com/gmail/nossr50/api/exceptions/InvalidSkillException
at me.armar.plugins.autorank.hooks.DependencyManager.(DependencyManager.java:38) ~[?:?]
at me.armar.plugins.autorank.Autorank.onEnable(Autorank.java:150) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:250) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:350) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:389) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
at org.bukkit.craftbukkit.v1_7_R1.CraftServer.loadPlugin(CraftServer.java:439) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
at org.bukkit.craftbukkit.v1_7_R1.CraftServer.enablePlugins(CraftServer.java:375) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
at net.minecraft.server.v1_7_R1.MinecraftServer.m(MinecraftServer.java:342) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
at net.minecraft.server.v1_7_R1.MinecraftServer.g(MinecraftServer.java:319) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
at net.minecraft.server.v1_7_R1.MinecraftServer.a(MinecraftServer.java:275) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
at net.minecraft.server.v1_7_R1.DedicatedServer.init(DedicatedServer.java:175) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:424) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
Caused by: java.lang.ClassNotFoundException: com.gmail.nossr50.api.exceptions.InvalidSkillException
at java.net.URLClassLoader$1.run(URLClassLoader.java:366) ~[?:1.7.0_51]
at java.net.URLClassLoader$1.run(URLClassLoader.java:355) ~[?:1.7.0_51]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.7.0_51]
at java.net.URLClassLoader.findClass(URLClassLoader.java:354) ~[?:1.7.0_51]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:77) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:62) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
at java.lang.ClassLoader.loadClass(ClassLoader.java:425) ~[?:1.7.0_51]
at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ~[?:1.7.0_51]
... 13 more

Autorank 2 Advanced Config

Please use the SimpleConfig unless you know what you are doing and

need functionality that the SimpleConfig doesn't provide.

use advanced config: true

all other advanced settings are ignored if this is set to false

afk integration: true

If a compatible AFK plugin is found autorank will not count online time for AFK players

This option is always on when using the SimpleConfig

Currently supports: Essentials

use partial completion: true

When this is true, players can use /ar complete # to complete a requirement at any moment they like.

When this is false, players will only be able to /ar check and check for all requirements at one time. They would need to have all requirements at that moment.

interval check: 1

This is the interval between checks of Autorank (in minutes).

Lowering this number will increase accuracy but will also increase server lag.

leaderboard layout: '&6&r | &b&p - &7&d day(s), &h hour(s) and &m minute(s).'
leaderboard length: 5

changes the appearance of the /ar leaderboard command

&r : Ranking in the leaderboard

&p : Player name

&m : Minutes (with full days and full hours not counted)

&h : Hours (with full days not counted)

&d : Days

&tm : Total amount of minutes

&th : Total amount of hours

ranks:
Settler:
requirements:
time:
value: 2h
results:
rank change: Settler;Farmer
command: 'pushcommand addmember Farmer &p; say &p has just been Settler to Farmer!'
message: 'Congratulations, you are now a Farmer.'
effect: STEP_SOUND;8
Farmer:
requirements:
time:
value: 6h
results:
rank change: Farmer;Citizen
command: 'pushcommand addmember Citizen &p; pushcommand delmember Farmer &p; say &p has just been Farmer to Citizen!'
message: 'Congratulations, you are now a Citizen.'
effect: STEP_SOUND;8
Citizen:
requirements:
time:
value: 12h
results:
rank change: Citizen;Merchant
command: 'pushcommand addmember Merchant &p; pushcommand delmember Citizen &p; say &p has just been Citizen to Merchant!'
message: 'Congratulations, you are now a Merchant.'
effect: STEP_SOUND;8
Merchant:
requirements:
time:
value: 1d
results:
rank change: Merchant;Knight
command: 'pushcommand addmember Knight &p; pushcommand delmember Merchant &p; say &p has just been Merchant to Knight!'
message: 'Congratulations, you are now a Knight.'
effect: STEP_SOUND;8
Knight:
requirements:
time:
value: 168h
results:
rank change: Knight;Duke
command: 'pushcommand addmember Duke &p; pushcommand delmember Knight &p; say &p has just been Knight to Duke!'
message: 'Congratulations, you are now a Duke.'
effect: STEP_SOUND;8
Knight:
requirements:
time:
value: 744h
results:
rank change: Knight;King
command: 'pushcommand addmember King &p; pushcommand delmember Knight &p; say &p has just been Knight to King!'
message: 'Congratulations, you are now a King.'
effect: STEP_SOUND;8

new requirements and results can be added by other plugins that hook into the Autorank API

these are the ones that are included in the main plugin:

requirements:

time: 1d 1h 1m

exp: 20 (level)

money: 2000 (requires vault ! Player has to have at least this amount of money)

world: world_nether (player has to be in this world to get ranked)

gamemode: 1 (player has to have a certain gamemode, 0 = Survival mode, 1 = Creative mode, 2 = Adventure mode)

has item: id(;amount;data) (checks the players inventory for the item)

blocks broken: id(;amount;data) (a player has to have broken x amount blocks of item id and data) (Requires Stats) (when no data or amount is given, it will check total blocks)

Example: break 10 magenta wool would be: 'blocks broken: 35;10;2' 35 = itemid, 10 = amount, 2 = damagevalue

blocks placed: id(;amount;data) (a player has to have placed x amount blocks of item id and data) (Requires Stats) (when no data or amount is given, it will check total blocks)

votes: 10 (player has to have voted at least 10 times) (Requires Stats and Votifier)

damage taken: 10 (player has to have taken 10 damage) (damage is not counted in hearts) (Requires Stats)

mobs killed: 5;spider (player has to have killed 5 spiders) (if no entity is specified, then any kill counts) (Requires Stats) (for a list of entities: http://jd.bukkit.org/rb/apidocs/org/bukkit/entity/EntityType.html)

location: x;y;z;world;radius (player has to be in a location or within its radius)

faction power: 10 (Amount of power a faction has to have) (Requires Factions)

players killed: 10 (Player has to kill at least 10 players) (Requires Stats)

global time: 10d 1h 5m (Player has to be online for at least 10 days, 1 hour and 5 mins) (Global time is the accumulated time over all servers you have connected the MySQL database with)

total time: 50d 1h (Player has to be with this server for at least 50 days and 1 hour) (The time from when the player joined for the first time is the reference point. This means that when a player has joined 3 weeks ago, his 'total time' = 3 weeks)

results:

rank change: new-rank

rank change: old-rank; new-rank

rank change: old-rank; new-rank; world (only works for permissions plugins that support this)

message: 'You got ranked up'

command: 'say &p hi; give &p 1 100'(executes a console command. &p will be replaced by the player name) You can perform more commands with the ';' sign.

effect: STEP_SOUND;8 (first argument is the effect name, second is the effect data. For a list of possible effects go to http://jd.bukkit.org/rb/doxygen/d8/db9/enumorg_1_1bukkit_1_1Effect.html)

tp: x;y;z;world;yaw;pitch (tp: 0;0;0;world_nether;1.0;2.0)

sql:
enabled: true
hostname: localhost:3306
username: mc_rank
password: 'nop'
database: mc_rank
table: autorank

auto-updater:

When check-for-new-versions is true, Autorank will tell you when a new version is available.

check-for-new-versions: true

When auto-download is true, Autorank will automatically download the most recent version

auto-download: true    

commented

I've uploaded a fix that will be available soon.

commented

Thanks