Error using "add" incorrectly #1


  • New
  • Defect
Open
Assigned to _ForgeUser11591311
  • mrpurmerend created this issue Dec 16, 2013

    What steps will reproduce the problem?
    1. /friend theirname  (tells you an argument is required, but adds user to list)
    2. /friend add theirname (tells you user is already on the list)
    3. /friend list (gives internal server error, see below)

    What is the expected output? What do you see instead?
    i expect it to not add the user to the list, or at least /friend theirname gives back a status
    what we get instead is simply a bug :)

    What version of the product are you using?
    164+bukkit r2.0

    Do you have an error log of what happened?
    yes

    04:03:19 [INFO] mrfloris issued server command: /friend 1MBNetwork
    04:03:29 [INFO] mrfloris issued server command: /friend add 1MBNetwork
    04:03:35 [INFO] mrfloris issued server command: /friend list
    04:03:35 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'friend' in plugin FriendMe v2.0
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:192)
        at org.bukkit.craftbukkit.v1_6_R3.CraftServer.dispatchCommand(CraftServer.java:528)
        at net.minecraft.server.v1_6_R3.PlayerConnection.handleCommand(PlayerConnection.java:968)
        at net.minecraft.server.v1_6_R3.PlayerConnection.chat(PlayerConnection.java:886)
        at net.minecraft.server.v1_6_R3.PlayerConnection.a(PlayerConnection.java:837)
        at net.minecraft.server.v1_6_R3.Packet3Chat.handle(SourceFile:49)
        at net.minecraft.server.v1_6_R3.NetworkManager.b(NetworkManager.java:296)
        at net.minecraft.server.v1_6_R3.PlayerConnection.e(PlayerConnection.java:116)
        at net.minecraft.server.v1_6_R3.ServerConnection.b(SourceFile:37)
        at net.minecraft.server.v1_6_R3.DedicatedServerConnection.b(SourceFile:30)
        at net.minecraft.server.v1_6_R3.MinecraftServer.t(MinecraftServer.java:592)
        at net.minecraft.server.v1_6_R3.DedicatedServer.t(DedicatedServer.java:227)
        at net.minecraft.server.v1_6_R3.MinecraftServer.s(MinecraftServer.java:488)
        at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:421)
        at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583)
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
        at main.Main.onCommand(Main.java:177)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
        ... 15 more

    Please provide any additional information below.
    nice plugin :)

  • mrpurmerend added the tags New Defect Dec 16, 2013

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