Problem with PEXRank (commands) #2


  • New
  • Defect
Open
Assigned to elchilen096
  • _ForgeUser8023497 created this issue Apr 9, 2012

    What steps will reproduce the problem?
    -1. write /pexrank in game or just pexrank in console (bukkit) will give the error I paste a bit down..

    What is the expected output? What do you see instead?
    - the ordinary a explanation how to rank someone =)

    What version of the product are you using?
    - The latest 1.3?

    Do you have an error log of what happened?
    -Yepp

    >pexrank
    19:33:13 [WARNING] Unexpected exception while parsing console command
    org.bukkit.command.CommandException: Unhandled exception executing command 'pexr
    ank' in plugin PEXRank v1.3
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:16
    6)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:4
    73)
            at org.bukkit.craftbukkit.CraftServer.dispatchServerCommand(CraftServer.
    java:469)
            at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:596)
            at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:565)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
            at com.JnaniDev.PEXRank.PEXRank.onCommand(PEXRank.java:63)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
            ... 7 more

    Please provide any additional information below.

    It have been working excellent before, but now, it is some wiierd stuff going on =(
    (It is a bit annoing to give players rank manually now :( so please help! :)   )

    ps. I can not make any commands related to PEXRank, but PermissionsEX works as it should, I  belive :)

  • _ForgeUser8023497 added the tags New Defect Apr 9, 2012
  • _ForgeUser9201800 posted a comment Jul 12, 2012

    Hello Gnilia3,

    I believe that I may have an answer to you're problem. What is happening is that the /pexrank command alone will produce a parsing error because the plugin is not catching that there is nothing after it. That is to say that if you were to do /pexrank hi and nothing proceeding after hi then it will also throw a parsing error due to the fact that it is missing part of the command, but if you do /pexrank hi noob it wont throw a parsing error even if the rank and user don't exist.

    This is an easy fix for the plugin creator by implementing a throws exception case.

    -il_dio


    Edited Jul 12, 2012

To post a comment, please login or register a new account.