Having an error with my arguments

Discussion in 'Plugin Development' started by MXCRAFTSERVER, Jun 9, 2013.

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

    MXCRAFTSERVER

  2. Offline

    Compressions

    MXCRAFTSERVER Does the error show up when the plugin is loaded or when you use that command?
     
  3. Offline

    kreashenz

    Use int Old = this.getConfig().getInt(Integer.parseInt(args[0]));
     
  4. Offline

    Compressions

    MXCRAFTSERVER Do what kreashenz said, and also create a try and catch block like so:
    Code:
    try {
    //code for if args[0] was an integer here
     
    //if args[0] was a different data type
    } catch(Exception ex) {
    ex.printStackTrace();
    }
     
    kreashenz likes this.
Thread Status:
Not open for further replies.

Share This Page