Problems with args

Discussion in 'Plugin Development' started by Gunpowder, Jan 7, 2012.

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

    Gunpowder

    Hey, i have a problem with args:
    Code:
    if(args[0] == "add"){
      p.sendMessage("good");
    }
    This don't work
     
  2. Offline

    hatstand

    Have you tried using
    Code:
    if(args[0].equalsIgnoreCase("add")){
      p.sendMessage("good");
    }
    instead? I find that is more reliable that using "==" in commands and such
     
    Gunpowder likes this.
  3. Offline

    Gunpowder

    oh I'm silly :DDDD thanks
     
Thread Status:
Not open for further replies.

Share This Page