Solved AutoRank Issue

Discussion in 'Bukkit Help' started by Winterfellhard, Oct 14, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    Winterfellhard

    Installed it and everything was running smoothly until I switched over to the advanced configs. I really like the extra features. Here is my error log:

    Code:
    [04:44:50 ERROR]: Error occurred while enabling Autorank v3.3 (Is it up to date?)
    java.lang.NullPointerException
        at me.armar.plugins.autorank.config.ConfigHandler.getRanks(ConfigHandler.java:90) ~[?:?]
        at me.armar.plugins.autorank.playerchecker.builders.RankChangeBuilder.createFromAdvancedConfig(RankChangeBuilder.java:37) ~[?:?]
        at me.armar.plugins.autorank.playerchecker.PlayerChecker.initialiseFromConfigs(PlayerChecker.java:179) ~[?:?]
        at me.armar.plugins.autorank.Autorank.onEnable(Autorank.java:371) ~[?:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:316) ~[craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:324) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:404) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at org.bukkit.craftbukkit.v1_7_R3.CraftServer.loadPlugin(CraftServer.java:446) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at org.bukkit.craftbukkit.v1_7_R3.CraftServer.enablePlugins(CraftServer.java:380) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.MinecraftServer.n(MinecraftServer.java:352) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.MinecraftServer.g(MinecraftServer.java:326) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.MinecraftServer.a(MinecraftServer.java:282) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.DedicatedServer.init(DedicatedServer.java:182) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:436) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]

    Here is the AdvancedConfig.yml

    Code:
    #############################################################################
    #                                                                          #
    #                  Autorank 2 Advanced Config                              #
    #                                                                          #
    #  Please use the SimpleConfig unless you know what you are doing and      #
    #  need functionality that the SimpleConfig doesn't provide.              #
    #                                                                          #
    #############################################################################
     
    ranks:
        Default:
            requirements:
                money: 1000
                time: 1h
                exp: 20
            results:
                rank change: Default;Novice
                command: 'say &p just got a promotion; broadcast &p has just been promoted to Novice!’
    #            command: ‘money pay @p 1000; money take &p 1000’
                message: 'Congratulations, you are now a Novice!’
        Novice:
            requirements:
                money: 10000
                total time: 10h
                exp: 20
            results:
                rank change: Novice;Trusted
                command: 'say &p just got a promotion; broadcast &p has just been promoted to Novice!’
                message: 'Congratulations, you are now a Novice!’
        Trusted:
            requirements:
                money: 30000
                total time: 1d
                exp: 20
                mcmmo power level: 50
            results:
                rank change: Trusted;Initiate
                command: 'say &p just got a promotion; broadcast &p has just been promoted to Initiate!’
                message: 'Congratulations, you are now a Initiate!’
        Initiate:
            requirements:
                money: 75000
                total time: 5d
                mcmmo power level: 100
                exp: 20
            results:
                rank change: Initiate;Knight
                command: 'say &p just got a promotion; broadcast &p has just been promoted to Knight!’
                message: 'Congratulations, you are now a Knight!’
        Knight:
            requirements:
                money: 200000
                total time: 14d
                mcmmo power level: 400
                exp: 30
            results:
                rank change: Knight;Warrior
                command: 'say &p just got a promotion; broadcast &p has just been promoted to Warrior!’
                message: 'Congratulations, you are now a Warrior!’
        Warrior:
            requirements:
                money: 500000
                total time: 21d
                mcmmo power level: 1000
                exp: 40
            results:
                rank change: Warrior;Commander
                command: 'say &p just got a promotion; broadcast &p has just been promoted to Commander!’
                message: 'Congratulations, you are now a Commander!’
        Commander:
            requirements:
                money: 750000
                total time: 28d
                mcmmo power level: 1500
                exp: 45
            results:
                rank change: Commander;General
                command: 'say &p just got a promotion; broadcast &p has just been promoted to General!’
                message: 'Congratulations, you are now a General!’
        General:
            requirements:
                money: 1000000
                total time: 60d
                mcmmo power level: 2500
                exp: 50
            results:
                rank change: General;MasterTime
                command: 'say &p just got a promotion; broadcast &p has just been promoted to MasterTime!’
                message: 'Congratulations, you are now a MasterTime!’
        MasterTime:
            results:
                command: 'say &p just got a promotion; broadcast &p has just been promoted to MasterTime!’
                message: 'Congratulations, you are now a MasterTime!’
     
     
    #           
    # 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;name) (checks the players inventory for the item, the name would be the display name of the item)
    #      blocks broken: id(;amount;data;name) (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)
    #      blocks moved: 1000;0 (Player has to move at least an x amount of blocks. Second argument is what kind of movement: 0=walk, 1=boat, 2=train, 3=pig, 4=pig in train, 5=horse) (Need Stats for this)
    #      worldguard region: TestRegion (Player has to be in a certain WorldGuard region) (requires WorldGuard)
    #      mcmmo skill level: 100;mining (Player has to have at least level 100 in mining) (requires McMMO)
    #      mcmmo power level: 100 (Player has to have at least power level 100) (requires McMMO)
    #      permission: i.need.a.permission (Player has to have this permission)
    #      fish caught: 10 (Player has to have caught at least 10 fish) (requires Stats)
    #      items crafted: 7 (Player has to have crafted at least 7 items) (requires Stats)
    #      times sheared: 15 (Player has to have sheared at least 15 sheep) (requires Stats)
    #
    #  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)
    #      firework: target;power;type;R;G;B (Spawn a firework with on a player or spawn, with specified power, type and RGB colour) (target can be 'player' or 'spawn', power is an integer, type is a type (see http://jd.bukkit.org/rb/doxygen/d0/d54/enumorg_1_1bukkit_1_1FireworkEffect_1_1Type.html), R;G;B is a RGB colour code (see http://www.rapidtables.com/web/color/RGB_Color.htm))

    Any tips or advice would be greatly appreciated! Tag me in replies. Thanks in advance! :)

    Solution Found:

    Had weird ' in the folder somehow?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 10, 2016
Thread Status:
Not open for further replies.

Share This Page