Unhandled Exception executing Command

Discussion in 'Bukkit Help' started by 8thDimension, Jul 26, 2011.

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

    8thDimension

    I've been working on a plugin that gives users a certain item, in return for iron ingots. Basically the player types a command like:

    /command amount

    Now, whenever you leave the amount blank like: "/command" it gives me an internal server error. In the console it simply says:

    "org.bukkit.command.CommandException: Unhandled exception executing command 'exchange' in plugin MyPlugin 0.1" along with some other mumbo-jumbo...

    How do I fix this? I've tried doing something along the lines of:

    Code:
                if (args[0] == null) {
                    player.sendMessage("Type what color fool!");
                    return true;
                }
    But that doesn't help. Sorry if this is an extremely nooby question, but it's something that I want to learn how to fix :3

    I'm using the CraftBukkit build (1000) by the way

    Thanks

    -8thDimension
     
  2. Offline

    jtlcr777

  3. Offline

    8thDimension

    Oohkie, sorry about that. I wasn't sure on which one to post on at first
     
Thread Status:
Not open for further replies.

Share This Page