Problem/Bug Autorank commands aren't working.

Discussion in 'General Help' started by megamidge11, Aug 9, 2015.

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

    megamidge11

    Hi, i have the autorank plugin.
    I am using it to have a ranking system like PvtI, PvtII, and have suffixes to reflect that, while staff ranks like Admin and Owner are untouched.
    When i do a command for autorank, like /ar check or /ar complete or /ar leaderboard, it just returns /ar [action] <playername>, as in, it just gives my syntax help. I don't know why this happens.
    Please help.

    I am using the advanced config and this is my config:
    ranks:
    recruit:
    requirements:
    time: 1h
    results:
    rank change: recruit; privateI
    command: 'manuaddv &p suffix PvtI'
    command: 'say &p Just ranked up to PvtI'
    message: 'You have ranked up to PvtI'
    test:
    requirements:
    has item: 264(;1)
    results:
    rank change: test
    command: 'manuaddv &p suffix [TEST]'
    command: 'say test was successfull'
    (This isn't including all the commneted stuff, and use advanced config is set to true).
     
  2. Offline

    Boomer

    start your server, then when it finishes booting (do not /reload - start it cleanly) copy the ENTIRE logs/latest.log file to www.pastebin.com and post the link back here. Need to see what plugins you have, what errors you may have with them, and other warning flags.
     
  3. Offline

    megamidge11

  4. Offline

    Boomer

    2015-08-11 08:44:18 [INFO] [Autorank] Simple config file loaded
    2015-08-11 08:44:18 [SEVERE] org.bukkit.configuration.InvalidConfigurationException: while scanning for the next token
    found character '\t' that cannot start any token
    in "<string>", line 40, column 1:

    You have at least one tab in your configuration file for Autorank, instead of spaces.
    That prevents the plugin from loading correctly, throws errors

    Your factions error seems to be possibly related to this: https://github.com/MassiveCraft/Factions/issues/425
     
  5. Offline

    megamidge11

    Ah, simple yaml parsing error then.
    And i didn't know i even had an issue with Factions, the way my server uses it is just for users to group eachother together, without any claiming.

    After sorting out the yaml errors, there were a few (tabs, random spaces) until yaml parsers flagged the file as errorless, it still does not work. The plugin seems to load but the commands for the plugin always return ''/ar action [playername]'' and don't seem to actually do anything.
     
    Last edited by a moderator: Aug 11, 2015
  6. Offline

    Boomer

    fresh server log again, and pastebin your config as well. You may have a valid yaml structure, but an invalid logical format
     
  7. Offline

    megamidge11

  8. Offline

    Boomer

    Parsing error in the file
    2015-08-11 11:40:52 [SEVERE] Error occurred while enabling Autorank v2.6 Beta (Is it up to date?)
    java.lang.NumberFormatException: For input string: "264("

    The brackets in the comments denote optional parts - optional quantities, optional damage values. They are not literally used.

    Fix, start, check logs, fix, start check logs, fix start check logs until there are no errors related to parsing your file.

    Once the server finally is able to parse the file it may say "Oh by the way, I CRASH - I'm the wrong version!" but you have to clear the parsing errors first
     
  9. Offline

    megamidge11

    Okay, i think it works. Putting the commands returns nothing at all, but it may be to do with my logic in how to get the 'test' rank, do i need the previous rank to achieve it? Does the rank have to exist in GroupManager. The way i want it is so its not needed, and the ranks are arbitrary and just give you a suffix and maybe access to something or a reward.

    Plugin doesn't enable, something about it saying ''is it up-to date?'' And this:
    java.lang.NullPointerException
    at me.armar.plugins.autorank.playerchecker.PlayerChecker.initialiseFromConfigs(PlayerChecker.java:45)
    at me.armar.plugins.autorank.Autorank.onEnable(Autorank.java:135)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:384)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:383)
    at org.bukkit.craftbukkit.v1_5_R3.CraftServer.loadPlugin(CraftServer.java:303)
    at org.bukkit.craftbukkit.v1_5_R3.CraftServer.enablePlugins(CraftServer.java:285)
    at net.minecraft.server.MinecraftServer.func_71243_i(MinecraftServer.java:479)
    at net.minecraft.server.MinecraftServer.func_71222_d(MinecraftServer.java:445)
    at net.minecraft.server.MinecraftServer.func_71247_a(MinecraftServer.java:385)
    at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:214)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:588)
    at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:573)

    <Edited by bwfcwalshy: Merged posts, please use the edit button rather than double posting.>
     
    Last edited by a moderator: Aug 11, 2015
  10. Offline

    Boomer

    that cant be the complete error
    98% chance you STILL have a logical error in your config
     
  11. Offline

    megamidge11

  12. Offline

    Boomer

    no autorank error like you posted is in that log... just warnings that in the grand scheme of things, your total system isnt set up right
    2015-08-11 12:24:14 [SEVERE] [Autorank] Permissions group is not defined: recruit

    2015-08-11 12:24:14 [SEVERE] [Autorank] Permissions group is not defined: test

    2015-08-11 12:24:14 [SEVERE] [Autorank] There are invalid groups defined in the config!
    2015-08-11 12:24:14 [SEVERE] [Autorank] Check your config!

    perhaps you did /reload at some point, not all plugins can handle /reload without exploding all over everything.
    Perhaps there is another config file to setup?
    Perhaps it is referring to the actual ranks, permission ranks?
     
  13. Offline

    megamidge11

    It must be referring to the actual ranks.. which is the opposite of what i want. this would mean i'd have to create extra ranks, but would also mean you can't be like a donator rank as well as the progress rank... damn
     
  14. Offline

    megamidge11

  15. Offline

    Boomer

    Nothing to bump. You hit a wall where what you want something to do isn't the way the plugin is designed to work.
     
  16. Offline

    megamidge11

    Ah.. damn. Well i guess i should look for a plugin that lets me run commands when a user meets requirements. If not, then i guess i'll take a crack at doing it myself.
     
Thread Status:
Not open for further replies.

Share This Page