Error using "add" incorrectly #1

  • New
  • Defect
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?

    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(
        at org.bukkit.command.SimpleCommandMap.dispatch(
        at org.bukkit.craftbukkit.v1_6_R3.CraftServer.dispatchCommand(
        at net.minecraft.server.v1_6_R3.PlayerConnection.handleCommand(
        at net.minecraft.server.v1_6_R3.PlayerConnection.a(
        at net.minecraft.server.v1_6_R3.Packet3Chat.handle(SourceFile:49)
        at net.minecraft.server.v1_6_R3.NetworkManager.b(
        at net.minecraft.server.v1_6_R3.PlayerConnection.e(
        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(
        at net.minecraft.server.v1_6_R3.DedicatedServer.t(
        at net.minecraft.server.v1_6_R3.MinecraftServer.s(
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
        at main.Main.onCommand(
        at org.bukkit.command.PluginCommand.execute(
        ... 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.