Solved On command Error

Discussion in 'Spigot Plugin Development' started by LazyDev, May 11, 2016.

  1. Cancel
     
    #1 LazyDev, May 11, 2016
    Last edited: May 12, 2016
  2. You are checking if args.length is equal to 1 whilst trying to use args[1] as the rank name. This will give an ArrayIndexOutOfBoundsException. Try changing a.length == 1 to a.length == 2. Good luck.