Solved Multiple args problem

Discussion in 'Plugin Development' started by NickDEV, Sep 26, 2015.

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

    NickDEV

    I made a simple MSG (private message command) and if the message is one ARG (one word) it works but else it doesn't. No error or anything.

    CODE: http://hastebin.com/efaxubedub.avrasm
     
  2. Offline

    Hawktasard

    @NickDEV
    You check if args.length is 2, if it's not 2 then you don't do anything. You should check if it is 2 or higher. (Change "if (args.length == 2) {" to "if (args.length >= 2) {")
     
  3. Offline

    NickDEV

    Ohh my bad xD
     
Thread Status:
Not open for further replies.

Share This Page